tbackup.sh
Novell Cool Solutions: Cool Tool
Reader Rating
from 2 ratings
In Brief
Back up and restore trustee rights.
Vitals
| Posted: | 19 Apr 2007 |
| File Size: | 3KB |
| License: | Free |
| Download: | /coolsolutions/tools/downloads/tbackup.zip |
| Publisher: | Peter Hine |
Disclaimer
Please read the note from our friends in legal before using this file.
Details
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.
Usage:
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:
#!/bin/bash # Restore rights to volume DATA rights -f "/media/nss/DATA" -r irf rights -f "/media/nss/DATA/apps" -r rf trustee ".CN=Deploy.OU=SubOU.OU=Network.O=Company.T=COMPANY_TREE" rights -f "/media/nss/DATA/deploy" -r rf trustee ".CN=Deploy.OU=SubOU.OU=Network.O=Company.T=COMPANY_TREE" rights -f "/media/nss/DATA/user/TestScoundrel" -r rwcefm trustee ".CN=TestScoundrel.OU=OU2.OU=Location.O=Company.T=COMPANY_TREE"
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com