Change file and folder permission recursively


To Change file and folder permission recursively, use the following command. Here we are using the folder /var/www as example
sudo find /var/www -type d -print0 | xargs -0 chmod 755
sudo find /var/www -type f -print0 | xargs -0 chmod 644

Comments

Popular posts from this blog

How to replace find -maxdepth option in Solaris Operating System using -prone

Installing RPMforge for CentOS 5

Using 'mutt' instead of 'mail' in Linux