0

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".

  • 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 02 '10 at 22:23

3 Answers3

1

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.

jlliagre
  • 8,861
  • 18
  • 36
0

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

Dennis Williamson
  • 62,149
  • 16
  • 116
  • 151
0

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.