Just more ramblings of another IT Guy

Daily Archives: 03/01/2013

Copy file permissions from one file to another!!!

As the subject says the following can be used to copy the permission settings from one file to another   chmod –reference <reference-file> <target-file>   Example: chmod –reference <tobecopied.txt> <destination.txt>