by peter hine
I noticed that while the rights facility under Linux was useful for telling you the rights for a particular directory, it wasn't suitable or really useful for anything more. NetWare has trustees.nlm that can backup a volumes trustees to a XML sheet, but Linux doesn't have that. Simply backing up the
.XML sheet in ._NETWARE directory and copying it back in when needed (or editing it to add particular trustees) only worked occasionally.
I was desiring a tool that would record the current rights in a way that tbackup.exe used to do (when it worked). So here it is.
The ZIP file includes tbackup.sh.
tbackup.sh [-f dir] [-r]
Creates a trestore.sh in the root of each volume unless -f is used.
-r relative. Don't include the /media/nss directory.
-f do one directory only, by default program does every volume in /media/nss.
Example output of what trestore.sh would look like:
# Restore rights to volume DATA
rights -f "/media/nss/DATA" -r irf
rights -f "/media/nss/DATA/apps" -r rf trustee
rights -f "/media/nss/DATA/deploy" -r rf trustee
rights -f "/media/nss/DATA/user/TestScoundrel" -r rwcefm trustee
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.