Created
March 14, 2013 02:23
-
-
Save hendrauzia/5158304 to your computer and use it in GitHub Desktop.
Compare folder permission in UNIX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# generate list of permission in source folder | |
find /SOURCEFOLDER -printf "%U, %G, %m, %p\n" > perm-source.txt | |
# generate list of permission in target folder | |
find /TARGETFOLDER -printf "%U, %G, %m, %p\n" > perm-target.txt | |
# get diff from written list | |
diff perm-source.txt perm-target.txt > perm-diff.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment