Created
August 25, 2012 15:30
-
-
Save ekka21/3467127 to your computer and use it in GitHub Desktop.
Linux: find file permission
This file contains hidden or 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
//find all with permission 777 | |
find / -type f -perm 0777 | |
//find all without permission 777 | |
find / -type f ! -perm 0777 | |
//Wordpress chmod permission | |
define('FS_METHOD', 'direct'); | |
sudo find . -type d -exec chmod 775 {} \; | |
sudo find . -type f -exec chmod 664 {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment