Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Dec 1997 20:07:28 +0100 (MET)
From:      j@uriah.heep.sax.de (J Wunsch)
To:        freebsd-current@freebsd.org
Subject:   Re: su and login.conf
Message-ID:  <199712201907.UAA00892@uriah.heep.sax.de>
References:  <19971220122048.25138@rtfm.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Nathan Dorfman <nathan@rtfm.net> wrote:

> Anyone else out there think that su should read login.conf when
> started without the - flag?

Why?  Every su (to whatever user) causes $HOME to be set, so you can
always differentiate between a -l and a plain su by placing stuff in
~/.cshrc vs. ~/.login.  The first will be evaluated for each su, the
second only for su -l.

Don't blame us for the ksh-style shells not offering a similar
mechanism as ~/.cshrc.  Tell this to Dave Korn.  $ENV sucks big rocks,
and has been invented by a time when there was already enough
experience with a working .cshrc.  Too bad this NIHism made it into
Posix.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712201907.UAA00892>