cPanel users wrong Ownership issue ..

In this forum you can read tutorials. You can also post your own tutorials to help other members.
Site Admin
Posts: 22
Joined: Sat Mar 16, 2013 9:54 pm

cPanel users wrong Ownership issue ..

Postby HR-ADMIN » Fri May 31, 2013 2:29 pm

We can use following command from shell to resolve issue when we migrate the servers by using rsync we face ownership problems for cPanel users files/directories.

for i in `cat /etc/trueuserdomains | awk ‘{print $2}’`
chown $i.$i /home/$i -R;
chown $i.mail /home/$i/etc -R;
chown $i.nobody /home/$i/public_html;

Make sure that you are using root login details to run above command.
Hostripples - Leaders in Linux Hosting
HostRipples | Domain Name Registration & $1 Web Hosting

Return to “Tutorials / How tos?”

Who is online

Users browsing this forum: No registered users and 1 guest