Página Inicial > linux > Mass change file permissions

Mass change file permissions

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.



Source : StackExchange answer

Share this : Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedInShare on TumblrEmail this to someone
Tags:
  1. Ainda sem nenhum comentário.
  1. Ainda sem nenhum trackback.