How to Suspend/Unsuspend @ DirectAdmin via SSH

Hello guys, DirectAdmin continues to improve itself. Regardless of license or not, you can suspend the account and unsuspend it again with the commands below:

To suspend an account (any account name):
/usr/local/directadmin/directadmin –suspend-user user = username

Restart account (unsuspend):

/usr/local/directadmin/directadmin --unsuspend-user user = username

Closing the domain address (a user may have multiple domains, so if you want to close a domain you can do the following):

/usr/local/directadmin/directadmin –suspend-domain domain = domainname.com

Unsuspend the domain address:

/usr/local/directadmin/directadmin –unsuspend-domain domain = domainname.com

 

Also if you want to check users' config files:

User conf file:

/usr/local/directadmin/data/users/username/user.conf

Domain conf file:

/usr/local/directadmin/data/users/aritekstil/domains/.conf

Do not forget to do an apache rewrite if you make changes.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to reinstall DirectAdmin in your web server?

Run the following commands to install: cd /usr/local/directadmin./directadmin i./directadmin p

How to install imagick with custombuild of DA?

Run the following command: cd /usr/local/directadmin/custombuild ./build update ./build...

The service ‘exim’ on server xxx is currently down

Rebuild your exim. cd /usr/local/directadmin/custombuild./build update./build set exim...

Change DA port to your choice where CSF installed

Here I will show you how to change the port from 2222 to 9999 in two steps. Step One:...

How to migrate cPanel account to DirectAdmin?

The cPanel conversion script currently only works for Admin Level restores. You must have to be...