Tag: ssh

Cloud Linux, Control Panel, CPanel / WHM

How to enable jailed shell/SSH access to CPanel user using command line.

To enable jailed shell or SSH access to CPanel user. You can run below command. chsh -s /usr/local/cpanel/bin/jailshell username Kindly replace username with CPanel username. It will show output like below [root@ ~]# chsh -s /usr/local/cpanel/bin/jailshell abcde23 Changing shell for abcde23. Shell changed. [root@ ~]#

Cloud Linux, CPanel / WHM

WHM API to change the main account domain name from the SSH

If you want to change the cpanel hosting account domain name using SSH or whmapi then you can run below command. whmapi1 modifyacct user=username domain=newdomain.com Replace username with actual username and domain name with the domain name which you want to change. It will show output like below [root@ ]# whmapi1 modifyacct user=username domain=younewdomain.com — …