Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Unable to Change Shell via WHM or CLI  (Read 3034 times)

0 Members and 1 Guest are viewing this topic.

vinayakk

  • Guest
Unable to Change Shell via WHM or CLI
« on: April 17, 2014, 02:28:38 am »
When trying to change a user’s shell via WHM, you may occasionally see the following error:

Shell could not be modified

As shown below:



Attempting to change the shell via command line fails as well:

# chsh -s /bin/bash iviews5
Changing shell for iviews5.
setpwnam: File exists
Shell *NOT* changed.  Try again later.

This means there is a lock on the /etc/passwd file.  Simply deleting /etc/ptmp fixes this problem:

rm /etc/ptmp

That's it.  :) :)