To set permission 755 for folders and 644 for files

ARUN Post in LINUX COMMANDS
0
find /home/*/public_html/ -type d -perm 0777 > /root/arun_777d.txt   –> TO FIND THE FOLDERS having 777 permission

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;

OR

for i in `cat /etc/trueuserdomains| awk {‘print $2′}`; do find /home/$i/public_html -type f -exec chmod 644 {} \;; find /home/$i/public_html -type d -exec chmod 755 {} \;; done

« Prev: :Next »

Leave a Reply

You must be logged in to post a comment.