Fix folders/files permissions
Hello,
How can i restore back the folders and files permissions under the account /home/myaccount.
Is there any script that i could fix the corrent folders and files permissions (755 and 644 respectively)?
I accidentally run
find /home/myaccount -type -d -exec chmod 755 {};
find /home/myaccount -type f -exec chmod 644 {} \;
Instead of under public_html folder.
Thank you.
-
Hi,
Our support team doesn't have any scripts that would automatically fix account permissions, but there are some 3rd party scripts such as the one below that can accomplish this:
Reset File and Folder Permissions and Ownership for a User Account in cPanel
Since this is a 3rd party script, I highly recommend exercising caution by creating an account backup before applying any changes.
0 -
Thank you for the reply.
Unfortunately this script is 15 years old and i don't feel safe to execute it. :(
0 -
Hi,
That's understandable. In that case, restoring the cPanel account from a backup if one is available would be the best solution. We have documentation on this process below:
0
Please sign in to leave a comment.
Comments
3 comments