Command to correct all the web files/directories permission in cPanel

Command to correct all the files permission to 644
=================================
find /home/*/public_html/* -type f -exec chmod 644 {} \;

Command to correct all the directories permission to 755
=================================
find /home/*/public_html/* -type d -exec chmod 755 {} \;

No comments:

Post a Comment