First, you need to create a script file, say “permission. sh”
Add the following script to that file.
#!/bin/bash cd /var/cpanel/users for user in * do chown -Rv $user.mail /home/$user/etc chown -v $user.nobody /home/$user/public_html chown -Rv $user.$user /home/$user done
Give excecution permission
chmod +x permission.sh
Run the script
If you like the post “Correct the ownership of all accounts in cPanel” and wish to receive more articles from us, please like our FB page: If you like this post and wish to receive more articles from us, please like our FB page: Button
Your suggestions and feedbacks will encourage us and help to improve further, please feel free to write your comments.
For more details on our services, please drop us an E-mail at email@example.com