<!DOCTYPE html> <html> <head> </head> <body> <p><strong>How to fix cPanel Account Permissions</strong></p> <p><strong>Fixing file and directory permission for a specific user.</strong></p> <div class="dean_ch"> <div class="de1">find /home/<strong>*</strong>/public_html/* -type f -exec chmod 644 {} ;<br />find /home/<strong>*</strong>/public_html/* -type d -exec chmod 755 {} ;</div> </div> <p>we can specify user by replace <strong>*</strong> with usename</p> <p><strong>To fix the permission for all the websites.</strong></p> <div class="dean_ch"> <div class="de1">for i in `ls /var/cpanel/users` ; do chown -R $i.$i /home/$i/public_html/* ; done</div> </div> </body> </html>
Subscribe
0 Comments
Oldest