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.

Multiple Accounts Package change.

Discussion in 'General Discussion' started by fedlerner, Jan 16, 2008.

  1. fedlerner

    fedlerner Active Member

    Joined:
    Oct 31, 2007
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Argentina
    Hi!
    We moved all accounts from one server to another, and many accounts were copied with a wrong package (ex: unlimited quota).
    Is there a way to change ALL accounts to a package? I want to re-change all accounts to the package so that all accounts get fixed.
    I know that this can be done at: Multi-Account Functions >> Modify/Upgrade Multiple Accounts, but the thing is I've to select each account, isn't there a way to select ALL accounts ?
    We have thousands of accounts on our server..


    Thanks.
     
  2. Arhineus

    Arhineus Well-Known Member

    Joined:
    Nov 1, 2005
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    6
    I've used the steps below numerous times, and it's pretty handy.

    Step 1: Create a new package named "temp".

    Step 2: Run the command below via shell. Replace "package1" with the source package name.
    Code:
    perl -pi.bak -e "s/package1/temp/g" /var/cpanel/users/*
    Step 3: Delete the original package.

    Step 4: Create the new package.

    Step 5: Run the command below via shell. Replace "package1" with destination package name.
    Code:
    perl -pi.bak -e "s/temp/package1/g" /var/cpanel/users/*
     
Loading...

Share This Page