Error as a root: shell missing

Error as a root: shell missing

Post by Silivren E » Sat, 25 Oct 2003 00:55:06


Hi,

I tried to change my root shell, but I made a mistake in shell name, now
when I login as a root it refuses login as shell does not exist.

How can I switch back my root shell to a good one?

Thanks
 
 
 

Error as a root: shell missing

Post by Bjn Ki » Sat, 25 Oct 2003 01:05:45


you can boot your BSD in a safe mode. it asks you for a kind of emergency shell. type "/bin/sh". now you are on prompt. remount your
/-partition, because it's read-only. now you can edit your /etc/passwd and correct your mistake. if your editor does not work you
have to work with "echo", "grep" resp. "grep -v" and stream redirection ">", ">>", aso.

Bjn.

 
 
 

Error as a root: shell missing

Post by Franci » Sat, 25 Oct 2003 01:09:08

Le 23-10-2003, Silivren Eryn-Duin < XXXX@XXXXX.COM > a rit >> Hi, >> >> I tried to change my root shell, but I made a mistake in shell name, now >> when I login as a root it refuses login as shell does not exist. >> >> How can I switch back my root shell to a good one? >> >> Thanks

Hello,
you could probably reboot in single user and change back to correct it.
Try to boot -s...

Hth,
Francis