How can I suspend an account from shell and prevent reseller from...

emurad

Member
Mar 3, 2011
10
0
51
Hello,

How can I suspend an account from shell and prevent reseller from unsuspending it through his reseller control panel?

I'm currently only able to do this through WHM by checking the option, so the question is how can I do it from shell?

Thanks.
 

milind

Well-Known Member
Jan 15, 2006
113
0
166
Nasik (Maharashtra), India
cPanel Access Level
Root Administrator
Hello emurad,

You can suspend any account using command "/scripts/suspendacct <username>" and to disable the unsuspending feature for anyone (only root user will able to unsuspend it from shell then) make the .htaccess file (in /home/suspending-user/public_html) immutable using following command

Code:
chattr +iau /home/suspending-user/public_html/.htaccess