Operating System - OpenVMS
1829142 Members
6424 Online
109986 Solutions
New Discussion

Re: Directory protection to the files

 
SOLVED
Go to solution
salomon cruz_1
Occasional Advisor

Directory protection to the files

Hi, please somebody can tell me how to transfer directory protection to all the files inside it and to the new files wroten to that directory?
I have OpenVMS 7.2-2

Thanks
7 REPLIES 7
Peter Quodling
Trusted Contributor

Re: Directory protection to the files

Other than set protection=(GROUP:RWED,WORLD:R)/DEFAULT

For more control $ HELP SET SECURITY

q
Leave the Money on the Fridge.
David B Sneddon
Honored Contributor

Re: Directory protection to the files

Something like

$set security 'device_name'[000000]'dirspec' -
/acl=(default_protection,system:rwed,owner:rwed,group:rwed,world:)

Adjust as necessary.

As suggested HELP SET SECURITY is useful.

Dave

Mike Reznak
Trusted Contributor
Solution

Re: Directory protection to the files

...and for all the files inside the directory(ies), created before the default option set.

first remove any old acl set, if you want to
$set security 'device_name'['dirspec'...]/acl/delete=all

set the same acl as on directory
$set security 'device_name'['dirspec'...]*.*.* -
/acl=(system:rwed,owner:rwed,group:rwed,world:)

take a look in
$help set security

Mike


...and I think to myself, what a wonderful world ;o)
Mike Reznak
Trusted Contributor

Re: Directory protection to the files

...slight correction...

$set security 'device_name'['dirspec'...]*.*.*/acl/delete=all

if you use ['dirspec'...], then you have to set default option on all subdirs as well.

I'm still asleep so my thinking is accelerating very slowly ;o))

Mike
...and I think to myself, what a wonderful world ;o)
Ian Miller.
Honored Contributor

Re: Directory protection to the files

After you create the default protection ACLs then do

$ SET SECURITY/DEFAULT device:[dir...]

To apply the settings to existing files.
____________________
Purely Personal Opinion
salomon cruz_1
Occasional Advisor

Re: Directory protection to the files

I solved my problem base on the answers a recived
Sebastian Bazley
Regular Advisor

Re: Directory protection to the files

I'd just add: if using backup to copy a directory tree, copy the parent directory first so as to preserve its settings.

e.g.
backup [top]next.dir;1 -
[top2]next.dir;1 [/by=orig]
backup [top.next...] -
[top2.next...] [/by=orig]

This may require SYSPRV or BYPASS if the top-level directory has restricted permissions.