Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"su -" "su: No shell". How can i fix it remotely??

Status
Not open for further replies.

wendigo21

IS-IT--Management
Apr 8, 2003
1
BR
Hi... i've changed the shell in "passwd" that was "/sbin/sh" to "/sbin/bash", but i forgot to send the "bash" to that directory. Now, the system can't find the shell.
Please, i really need to know how fix this big trouble.
Thanks.
 
Instead of "su -", try just doing an "su".

That should get you to the point where you can clean up.
 
Are we talking about the root shell here? If so, you can reboot your system using boot cdrom from the OK prompt, mount your root disk (usually c0d0tos0) and edit the /etc/passwd file manually to take out the spurious shell reference and replace it with the original. Then reboot and away you go. There are quite a few threads in this forum relating to this problem (and a FAQ too I think), so check them out too. HTH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top