Date: Fri, 28 Feb 1997 16:43:28 -0800 From: Jason Wells <jcwells@u.washington.edu> To: Ravi Pina <falcon@gersh.org> Cc: freebsd-questions@freebsd.org Subject: Re: Invalid Shell Lockout Message-ID: <33177BB0.2451@u.washington.edu> References: <331771C1.FF6D5DF@gersh.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Ravi Pina wrote:
>
> Well, I seemt o have supplied an invalid shell for root, so when I want
> to su over it gives me a Permission denied! I appear to be completely
> locked out of the system as a result... any idea what I can do to
> overcome this problem? It owuld be nice if it just fell back to /bin/sh
> or something so you can login even if you're a dork like me.
I did this. I seem to recall that I just logged in as root (not su) and
was able to select my shell.
If you want to use a different shell you can edited /etc/shells and put
the desired shell in this file. Then it will no longer be invalid.
You may also try reading man su. I beleive that you can su -m without
the shell being changed. This will give you your root power back. As you
will be root but with the pre-existing shell. Then you can edit
everything and make it right.
--
__ __
/ 0\ / 0\ Thank you * Highperformance.net
) Wannabe Sysadmin * The homeless domain
)-------( Jason Wells * "Pardon me sir, spare some bandwidth?"
\_____/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?33177BB0.2451>
