Hello,
I was trying to create an FTP user on my server with access to all account. But accidentally changed ownership permission for all accounts to dane:dane user. Now all the site are down. Please would you help me asap. Is there any option revert this changes. My server is running with cPanel.
Sites are down, permission issues.
Moderator: Staff
cPanel Server Management
@ 30$ Onwards
@ 30$ Onwards
Re: Sites are down, permission issues.
Hello Dane,
You can fix the ownership permissions for all the cPanel accounts using this bash script. Please try it.
Create a file with name fileperm.sh
Paste this script
Save and run
#sh fileperm.sh
You can fix the ownership permissions for all the cPanel accounts using this bash script. Please try it.
Create a file with name fileperm.sh
Paste this script
Code: Select all
#!/bin/bash
cd /var/cpanel/users
for user in *
do
chown -Rv $user.$user /home/$user
chown -Rv $user.mail /home/$user/etc
chown -v $user.nobody /home/$user/public_html
done
#sh fileperm.sh
Aaron N
Linux Support Engineer.
Nixtree Solutions LLP
Managed Full Server Backups
https://www.nixtree.com/managed-backups.php
Follow us on : https://twitter.com/nixtree
Linux Support Engineer.
Nixtree Solutions LLP
Managed Full Server Backups
https://www.nixtree.com/managed-backups.php
Follow us on : https://twitter.com/nixtree
-
- Posts: 0
- Joined: Sun Jun 24, 2018 8:29 am
Re: Sites are down, permission issues.
Hello Aaron,
Thanks Aaron, you saved me. This Really saved my life and alot of time! thank you very much. My sites are back online.
Thanks Aaron, you saved me. This Really saved my life and alot of time! thank you very much. My sites are back online.