Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can't change my shell for root in Solaris 10. When i change, i can't login again after logout. The error is "no shell".

share|improve this question
What shell are you changing from/to? Are you sure you have the correct path to the shell? Depending on how things are setup you may need to put the full path. – einstiien Feb 2 '10 at 22:23
up vote 0 down vote accepted

I have had this issue and I believe the shell binary has to be on the / partition, at least in recovery mode when the other partitions are not mounted.

share|improve this answer

You probably messed the /etc/passwd file by editing it directly. What prints head -1 /etc/passwd | od -c ? Shell should be changed by using the passwd -e command.

share|improve this answer

You have to specify the full path to the shell executable and I believe that appropriate permissions have to also be set.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.