If I change my shell to be something like /bin/abc, where abc is something random (or may not even exist), what happens when I login (assume that I have added it to /etc/shells, so chsh won't whine.)? Is there a default shell that it switches to or will it just give an error and not let me login?
|
| ||||
|
feedback
|
|
You will be unable to log in, and must have the sysadmin fix it. | |||||||
feedback
|
|
It takes three lines to find the answer on your own:
| |||
|
feedback
|
|
As others have already answered, you won't be able to login to a shell prompt... If you have SSH set up, you might be able to use it to fix things if it's handling shells differently, or at least letting you use SCP to upload a corrected file (such as the one that defines which shell your user accounts use). FTP probably won't (and shouldn't) have access to the files you need to update, but I mention this because perhaps this could get you thinking of other alternatives? Do you have a web server running with some sort of file management console that can do this for you? | |||
|
feedback
|
/and*were invalid characters :( – user70365 May 12 '11 at 15:40