This function suspends an account.
HTTP Request was successful.
object |
whmapi1 --output=jsonpretty \ suspendacct \ user='username'
{- "metadata": {
- "command": "suspendacct",
- "output": {
- "raw": "Changing Shell to /bin/false...Changing shell for username. Warning: \"/bin/false\" is not listed in /etc/shells. Shell changed. Done Locking Password...Locking password for user username. passwd: Success Done Suspending mysql users Using Universal Quota Support (quota=0) Suspending websites... Using Universal Quota Support (quota=0) Suspending FTP accounts... Updating FTP passwords for username FTP password files updated. FTP vhost passwords synced username's account has been suspended\n"
}, - "reason": "OK",
- "result": 1,
- "version": 1
}
}