Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

3 Answers

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
add comment

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
add comment

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
add comment

Your Answer

 
discard

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