General discussion

Locked

no shell

By elemzy ·
i have a sun machine. the default login shell for administrator is the bourne shell. i tried changing the shell using the chsh command but it failed. i then edited the etc/passwd file and changed the shell for the root to csh. i then rebooted, but when i tried to login with the root account the system said there is no shell. pls help me cause this is the only account with administartive priviledge.

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

no shell

by why In reply to no shell

If you've not got an account that can put the passwd file back how it was you're going to have to boot from the installation media, mount the disk and do it that way.

When messing around with the root account, always, always test it out in a seperate session before you log out the original one. That includes changing the root password. I think you can see why!

Collapse -

no shell

by elemzy In reply to no shell

thanks man, it helped.

Collapse -

no shell

by draegor In reply to no shell

AFter you have completed reboot as described in answer #1. Remember that you can also use admintool to change the shells.

In the first instance you also might have forgotten to change the /etc/shadow file in conjuction with the password file. Tryit with a test user though and not with root. :-) Good luck

Collapse -

no shell

by elemzy In reply to no shell

Poster rated this answer

Collapse -

no shell

by elemzy In reply to no shell

This question was closed by the author

Back to Linux Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums