The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Account Ownership

Discussion in 'General Discussion' started by Shark Stone, Feb 20, 2010.

  1. Shark Stone

    Shark Stone Member

    Joined:
    Feb 20, 2010
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I have just been getting use to WHMCS and found the import button. I have the following issue,

    I have one account owned by the account username and the other accounts are owned by "root".

    How could I make it so all accounts are owned by their username and not root?

    Jess
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,461
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    All accounts should be owned by root, or a reseller (preferred, IMHO). A regular account is never owned by the user.

    To make sure all accounts are owned by the correct user, in this case it sounds like you're setting up your accounts to be all owned by root, you can check the View Accounts page in your WHM and scroll all the way to the right to find the Owner column. Find the one account not owned by root and click there to change owner.

    Unless I have completely misread your post...

    HTH
     
  3. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    You can change the ownership of the user by login to your SSH.
     
  4. Shark Stone

    Shark Stone Member

    Joined:
    Feb 20, 2010
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Hey,

    Thanks for that, this is the first time I have done a vps from scratch so just making sure. Will start another thread about another issue I have
     
  5. InstaCarma_Tech

    InstaCarma_Tech Well-Known Member

    Joined:
    Apr 22, 2009
    Messages:
    228
    Likes Received:
    1
    Trophy Points:
    18
    Fix the ownership of /home:

    Code:
    chown root.root /home 
    To change the ownership of all accounts to the respective user.user :

    Code:
     cd /home
        ls -al | grep root
    
        for i in `ls /var/cpanel/users/`; do chown $i:$i /home/$i ; done
        for i in `ls /var/cpanel/users/`; do chown -R $i:$i /home/$i/* ; done 
     
  6. yapluka

    yapluka Well-Known Member

    Joined:
    Dec 24, 2003
    Messages:
    301
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    France
    cPanel Access Level:
    Root Administrator
    Not all files in /home/user/ are owned by user.user.
    Your command will break the mail system of the user, for example.
     
Loading...

Share This Page