Arquivo

Arquivo de Outubro, 2014

Mass change file permissions

24, Outubro, 2014 Nenhum comentário

You can change the permissions of all 777 folders to 755 using find as below.

The above command will change all the directories inside /var/www to have the permission set as 755. To verify it, you can use the below command.

To change the permissions of all php files, you can use the below command.

Again, you can use the stat command to verify if the permissions had changed. Or you can even use,

Both stat and ls -ld will display the octal permissions of the file.

Share this : Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedInShare on TumblrEmail this to someone
Tags: