Sv: [SLE] No shell in /etc/passwd
![](https://seccdn.libravatar.org/avatar/5574a2ad242ba2f4d5387bb040330bd9.jpg?s=120&d=mm&r=g)
Jack Barnett
I changed my shell in /etc/passwd, which I type the path to it wrong, now when I try and log in, it gives me an error saying I don't have a valid shell and then disconnects the sesssion. The problem is, well the machine is in a remote area, and I don't have physically access to it. I tried rlogin in which doesn't work either. Any ideas?
This probably won't help you, but I think I know what is wrong. During the login procedure, a list of valid shells is checked. I think the file is /etc/shells. This file contains lines like the following: /bin/sh /bin/bash If the shell listed in /etc/passwd is not in this file, login will fail. Since you put your new bash in /usr/local/bin, I think you forgot to put this new location into /etc/shells. However, if you cannot get a login on the comp, this info is not of much help to you. At least now you know it for the next time you change a shell. Regards Ole -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (1)
-
k01164@ko.sdu.dk