Operating System - OpenVMS
1829748 Members
1495 Online
109992 Solutions
New Discussion

Re: Restore protection/ACLs only

 
SOLVED
Go to solution
BoyeDav
Frequent Advisor

Restore protection/ACLs only

I've done backups and restores with /SAVE/BY_OWNER=ORIG, and somehow some of the files weren't restored with the proper ACLs or protection.

Is there a way to do a restore of only ACLs/protection? I just need to restore the security of the files.

Thanks!
3 REPLIES 3
Robert Gezelter
Honored Contributor
Solution

Re: Restore protection/ACLs only

BoyeDav.

I do not recall a documented way to do this. I would like to see the precise command line that was used to restore the volume. Also, was the restore operation done from a privileged account, or is something else going on.

Insofar as effectively retrieving the ACLs from the backup save set, I would be inclined to restore the save set to a private volume, and then write a command file to iterate using the F$SEARCH lexical function to iterate through the private volume, and use a SET SECURITY/LIKE command to copy the ACL from the private volume to the other volume.

- Bob Gezelter, http://www.rlgsc.com
BoyeDav
Frequent Advisor

Re: Restore protection/ACLs only

That's perfect. I did a DIR of all files I want to fix, then scripted the application of the correction ownership for another directoy containing the backup.

I ended up with something like this working:

SET SECURITY/LIKE=NAME=DBCRELATION_SOFTGIFTS.FMT /COPY_ATTRIBUTE=OWNER/CLASS=FILE DISK$RAMB:[DBCENTREL.FILES]DBCRELATION_SOFTGIFTS.FMT
BoyeDav
Frequent Advisor

Re: Restore protection/ACLs only

SET SECURITY with /LIKE and /COPY_ATTRIBUTE=OWNER did exactly what I needed. I restored the original files to an alternate location and used them as the source for copying the security info to the files with the broken ownership.