Subject: Re: bin/5788: su enhancement: allow root to su explicitly with /bin/sh
To: None <>
From: Todd Vierling <>
List: netbsd-bugs
Date: 07/18/1998 10:02:19
[Hm.  I hope my mail gets through this time....]

On Sat, 18 Jul 1998 wrote:

: 	When a user has a non-generic shell (i.e. not one of the normal
: 	command-line shells such as /bin/sh, but instead something like
: 	/sbin/nologin), it is impossible, even for root, to start a normal
: 	shell as that user.

It's not quite impossible.  Try "su -m".  That preserves the caller's
environment, including $PATH and $HOME, however.  (For me, it's less useful
to have a fresh environment for someone with no shell, but that may be
different for you.)

-- Todd Vierling (Personal; Bus.