Upgrade a User to a Reseller. Assume that user name is ‘staysafe’.
cd /usr/local/directadmin/scripts ./user_to_reseller.sh staysafe
Upgrading a Reseller to an Admin. Assume that reseller name is ‘bdtopten’.
cd /usr/local/directadmin/data/users/bdtopten perl -pi -e 's/usertype=reseller/usertype=admin/' user.conf cd /usr/local/directadmin/data/admin perl -pi -e 's/^bdtopten\n//' reseller.list echo bdtopten>> admin.list
Downgrading a Reseller to a User. Assume that reseller name is ‘kitedubd’ and ‘kitedubd’ has no users.
- Change user type at user.conf
vi /usr/local/directadmin/data/users/kitedubd/user.conf
- Change as follows
usertype=user
- Update admin reseller list, remove ‘kitedubd’
vi /usr/local/directadmin/data/admin/reseller.list
- Update admin user list, add ‘kitedubd’
vi /usr/local/directadmin/data/users/admin/users.list
- Done!
Leave a Reply