Suspending account with access to cpanel.

orlandoadm

Registered
Feb 15, 2016
4
0
1
Ro
cPanel Access Level
Root Administrator
Hello,

Im interested in modifying the suspendacct script, to be able to suspend an account completely, but to grant access in the same time to cPanel, so the client can resolve the issues with his Site/account.

I commented out the line #system( 'passwd', '-l', $user ); so it doesnt puts !! in /etc/shadow next to the account pass but still wasn't able to log in and the account doesn't shows as suspended in WHM(it appears after i insert manually the !! before pass)
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
That's not the intent of account suspension. If you want to restrict public access to the customer's website then you should reduce its bandwidth quota. That allows your customer to login to cPanel, and other services to adjust whatever you need him to adjust. Afterward you can restore the bandwidth quota to the proper amount.
 

orlandoadm

Registered
Feb 15, 2016
4
0
1
Ro
cPanel Access Level
Root Administrator
If i reduce the bandwith quota just the site will be unaccesible?for example if it was inserted a malicious script on the account wich sends spam mails its not gonna stop that.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
If i reduce the bandwith quota just the site will be unaccesible?for example if it was inserted a malicious script on the account wich sends spam mails its not gonna stop that.
Correct. Reducing the bandwidth quota will prevent Apache from serving more data. If the problem is email related in version 54 we provide the means to disable email accounts: 54 Release Notes - Documentation - cPanel Documentation

That may or may not meet your needs.