Question
How do you fix mailbox permissions for an email account that cannot be fixed with the mailperm script?
Answer
- Log in to the server via SSH or access WHM's Terminal as the
rootuser Confirm the files and groups are owned by
rootby running the following command:# find /home/user/mail/ -group root -user root
Note: You need to replace "user" with the cPanel account's username
If the files are owned by
root, log in to the server and run the following command to backup the email files:# cp -Rav /home/user/mail{,.temp-backup}
Note: You need to replace user with the cPanel account's username
Run the following command to fix the ownership of the mail files for the user:
# find /home/user/mail -group root -user root -exec chown -Rv user:user {} \;
Note: You need to replace all instances of "user" within the above command with the cPanel account's username
Comments
0 comments
Article is closed for comments.