Hey,
I copied some old accounts from another server to our new cpanel server, but i cant change files because the owner is 0. How can I reset the ownership in a simple way?
thanks.
Hey,
I copied some old accounts from another server to our new cpanel server, but i cant change files because the owner is 0. How can I reset the ownership in a simple way?
thanks.
It seems chown -R works but I first have to find out a user ID of a certaing user. Isnt there a way like DirectAdmin where you can "Reset Ownership" ???
Hello,
You will get this information for 3rd and fourth field of /etc/passwd.
richu:x:538:539::/home/sarat:/bin/bash
usernameassword:userid:groupid:home direcotry:shell
Change the 3 "$user" fields below to the username and run in ssh (as root) to change the complete user directory.
chown -R $user.$user /home/$user/public_html/*
It will associate the gid and uid numbers based on the username.
Hope this helps,
Ron
Last edited by cpanelinfoseeker; 01-19-2008 at 09:55 AM. Reason: run as root!