fedlerner

Active Member
Oct 31, 2007
33
0
56
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.
 

Arhineus

Well-Known Member
Nov 1, 2005
58
0
156
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/*