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.

Change Ownership of a lot of accounts

Discussion in 'General Discussion' started by horrighs, Mar 8, 2003.

  1. horrighs

    horrighs Well-Known Member

    Joined:
    Mar 8, 2003
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    Is there any way of moving alot of accounts from one reseller to another or to root? I have 280 i need to move, and one at a time will be quite slow :)

    can i modify the users directly in the:

    /var/cpanel/users

    folder?
     
  2. Annette

    Annette Well-Known Member
    PartnerNOC

    Joined:
    Aug 12, 2001
    Messages:
    445
    Likes Received:
    0
    Trophy Points:
    16
    replace OWNER=oldowner OWNER=newowner -- /var/cpanel/users/*
     
  3. horrighs

    horrighs Well-Known Member

    Joined:
    Mar 8, 2003
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    that wont mess anything up?
     
  4. Annette

    Annette Well-Known Member
    PartnerNOC

    Joined:
    Aug 12, 2001
    Messages:
    445
    Likes Received:
    0
    Trophy Points:
    16
    That will change all instances of OWNER=oldowner to OWNER=newowner for all entries in /var/cpanel/users/. If you're changing the ownership for all of them, it will be perfectly safe. If you are not changing the ownership on all of them, you should not use this command (unless only a couple will be remaining with the original owner, in which case it will be less work to replace all of them initially and then modify the few that need to be reverted).
     
  5. horrighs

    horrighs Well-Known Member

    Joined:
    Mar 8, 2003
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    Oh ok great, i was just concernd that i might messup something else buy simply changing that OWNER line. If that is the only place then its cake :)
     
Loading...

Share This Page