Sometimes, we will have the ssh root access without WHM access. If suppose, you want to change the package, owner, etc., for an account. In WHM, you can edit the settings easily. Here is the post to explain, how to change the account settings in backend.

+ Login to server as root.

+ Change the working directory to /var/cpanel/users

====

$ cd  /var/cpanel/users/

====

+ Access the cpanel account file.

 

====

vi cpanelacc

====

 

The folllowing content will be shown.

 

—————-

# cPanel — If you edit this file directly you must run /usr/local/cpanel/scripts/updateuserdomains afterwards to rebuild the system caches.
# If you edit MAX_EMAIL_PER_HOUR or MAX_EMAIL_PER_HOUR-[domain] you must run /usr/local/cpanel/scripts/updateuserdomains
BWLIMIT=unlimited
CONTACTEMAIL=youremail@domain.tld
CONTACTEMAIL2=
DBOWNER=username
DEMO=0
DNS=domainname.tld
DNS1=ns1.domainname.tld
FEATURELIST=default
HASCGI=1
HASDKIM=0
HASSPF=0
IP=1.1.1.1
LOCALE=en
MAXADDON=2
MAXFTP=unlimited
MAXLST=unlimited
MAXPARK=unlimited
MAXPOP=unlimited
MAXSQL=unlimited
MAXSUB=unlimited
MTIME=1338330534
OWNER=root
PLAN=default
RS=x3
STARTDATE=1338330534
USER=username

—————-

 

From the above, if you want to change the package then edit “PLAN” or else if you want to change the onwership then edit “OWNER“.

 

+ After completing the above step, you would need to run the following command inorder to change the reflects to WHM.

 

===

/usr/local/cpanel/scripts/updateuserdomains

===

 

 

 

Leave a Reply