[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ROOT created chaos !



Bal K. Paudyal:
> As root, I typed the following:
> 
> "chsh /bin/usr/tcsh" when I meant "chsh /usr/bin/tcsh".
> 
> I just wanted to change the shell. But now because that shell file does not
> exist, the system does not allow me to log in as root. I tried to log as su
> but it does not work! There must be some way to change the things back!

sulogin takes the shell to use from the environment variable SULOGIN, if it
exists (otherwise it uses /etc/passwd)

So "setenv SULOGIN /usr/bin/tcsh; sulogin" should give you a root shell


Jiri
-- 
<jiri@baum.com.au>
We'll know the future has arrived when every mailer transparently
quotes lines that begin with "From ", but no-one remembers why.


Reply to: