Operating System - OpenVMS
1830172 Members
4575 Online
109999 Solutions
New Discussion

Re: Remove VMS File Protection

 
SOLVED
Go to solution
Karen Lee_3
Frequent Advisor

Remove VMS File Protection

I can't remember the syntax to change file protection from (s:rwe,o:rwed,g:re)
to remove the group access - how do you make it (g:) ?

4 REPLIES 4
Jim_McKinney
Honored Contributor
Solution

Re: Remove VMS File Protection

$ SET FILE/PROT=G filename.ext
Wim Van den Wyngaert
Honored Contributor

Re: Remove VMS File Protection

set file x /prot=g

Wim
Wim
Karen Lee_3
Frequent Advisor

Re: Remove VMS File Protection

thanks guys
John Gillings
Honored Contributor

Re: Remove VMS File Protection

Karen,

Jim and Wim are, of course correct, but the syntax is old (though not quite obselete). The more general method of changing the security profile of files and other objects is with SET SECURITY.

$ SET SECURITY/CLASS=FILE/PROTECTION=(G) file

In this case it's longer than the SET FILE equivalent, but given the complex syntax of security related commands, it probably makes sense to familiarise yourself, and routinely use the more general command as it applies to everything.
A crucible of informative mistakes