Home   Profile   Fun
#86 Linux  03.04.2007

Use Allrights to backup and restore file permissions suid sgid sticky bits owners and groups


This Perl script allows you to save and restore file permissions, owners and groups of a whole directory tree independent from the files themselves. It also saves suid bit, sgid bit, sticky bit, hidden folders and hidden files. Allrights can handle file and folder names with unusual characters. Just run it at the command prompt and it will create two shell scripts. One to restore your file permissions and the other one to restore your owners and groups.

Download 1.02 Allrights.tgz

Easy to use
-download the file
-uncompress it with "tar xfvz Allrights.tgz"
-make it executable with "chmod 0700 Allrights.pl"
-run the script with "./Allrights.pl yourfolder" or type "./Allrights.pl ?" for more info


Change Log

From 1.01 to 1.02
2005-12-18
Fixed: File names with only one character are ignored

From 1.0 to 1.01
2005-12-16
Many thanks to Marc Mims who found and fixed 3 bugs:
Fixed: No support for file names with single quotes
Fixed: Misinterpretation of file names starting with dashes
Fixed: Restore does not work if executed on non-existing directories