Last active
October 13, 2015 02:28
-
-
Save benoitjpnet/4124911 to your computer and use it in GitHub Desktop.
itk change rights
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 /tmp/ -user www-user.old -exec chown www-user:user {} \; | |
find /tmp/ -user user.old -exec chown user:user {} \; | |
* Détecter les fichiers non lisibles par Apache (lecture sur le groupe) : find ./ -type f ! -perm /g=r -exec ls -l {} \; | |
* Détecter les répertoires non lisibles par Apache (lecture/exécution sur le groupe) : find ./ -type d \( ! -perm /g=r -o ! -perm /g=x \) -exec ls -ld {} \; | |
* Détecter les fichiers/répertoires accessibles en écriture par Apache (écriture sur le groupe) : find ./ -perm /g=w | |
* Détecter les fichiers/répertoires accessibles en écriture par tous : find ./ -perm -007 -o -type f -perm -006 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment