Date: Thu, 27 Feb 1997 15:33:31 +1100 From: David Nugent <davidn@labs.usn.blaze.net.au> To: "Andrey A. Chernov" <ache@freefall.freebsd.org> Cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-usrbin@freefall.freebsd.org Subject: Re: cvs commit: src/usr.bin/login login.c Message-ID: <19970227153331.46240@usn.blaze.net.au> In-Reply-To: <199702270352.TAA00359@freefall.freebsd.org>; from Andrey A. Chernov on Feb 02, 1997 at 07:52:23PM References: <199702270352.TAA00359@freefall.freebsd.org>
index | next in thread | previous in thread | raw e-mail
On Feb 02, 1997 at 07:52:23PM, Andrey A. Chernov wrote:
> Modified: usr.bin/login login.c
> Log:
> Fix few bogons with pw_shell / shell variables values mismatch
> introduced by LOGIN_CAP
This breaks the shell= function.
"shell=" in /etc/login.conf should NOT be set in the $SHELL
environment variable. This is BSDI's usage, and it should
also be ours - in fact, according to our documentation it is:
Extract from login.conf(5):
shell prog Session shell to execute rather than the
shell specified in the passwd file. The
SHELL environment variable will contain
the shell specified in the password file.
The point of having this facility is to allow the sysadmin to
run a program or script which may optionally execute the
user's shell or other programs via system(). Many people over
the years have had to hack login(1) to do this instead (menus,
service selectors etc), and this facility makes it unnecessary
to actually hack system code to achieve the desired result.
In other words, "shell=" is not intended to replace the shell
field in the password file, but to compliment it.
I agree that the tag is poorly named. It probably should be
"preshell=", "run=" or just about anything other than "shell=".
Regards,
David Nugent - Unique Computing Pty Ltd - Melbourne, Australia
Voice +61-3-9791-9547 Data/BBS +61-3-9792-3507 3:632/348@fidonet
davidn@freebsd.org davidn@blaze.net.au http://www.blaze.net.au/~davidn/
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970227153331.46240>
