1 #Set private 2 chmod -R go-rwx ~ 3 4 #Set all regular files 600 5 find ~/ -type f -exec chmod 600 {} \; 6 7 #Set all directories 700 8 find ~/ -type d -exec chmod 700 {} \; 9 10 #Set all un-executable files 600 11 find ~/ ! -executable -exec chmod 600 {} \; 12 13 #Set all executable files 700 14 find ~/ -executable -exec chmod 700 {} \;
No comments:
Post a Comment