Skip to content

Instantly share code, notes, and snippets.

@hendrauzia
Created March 14, 2013 02:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hendrauzia/5158304 to your computer and use it in GitHub Desktop.
Save hendrauzia/5158304 to your computer and use it in GitHub Desktop.
Compare folder permission in UNIX
# 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