Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jul 2002 02:52:14 +0200
From:      Cyrille Lefevre <cyrille.lefevre@laposte.net>
To:        Marc Olzheim <marcolz@ilse.nl>
Cc:        stable@freebsd.org, marcolz@stack.nl
Subject:   Re: /bin/sh, $MAIL and login.conf
Message-ID:  <20020711005214.GD82744@gits.dyndns.org>
In-Reply-To: <20020708203130.GA6805@gits.dyndns.org>
References:  <20020705132210.A20062@ilse.nl> <20020708203130.GA6805@gits.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
message resent due to mta misconfigation.

On Mon, Jul 08, 2002 at 10:31:30PM +0200, Cyrille Lefevre wrote:
> On Fri, Jul 05, 2002 at 01:22:10PM +0200, Marc Olzheim wrote:
> > I was wondering why /etc/login.conf makes the login shell for root check
> > for mail in /var/mail/root. Most systems I use have /var/mail
> > nfs-mounted from a central mailserver.
> 
> an alternative would be to access /var/mail nfs-mounted as
> /var/spool/mail and to make some mods in /etc/login.conf such as :
> 
> default:\
> 	...
> 	:setenv=MAIL=/var/spool/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\
> 	...
> 
> root:\
> 	...
> 	:setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\
> 	...
> 
> > When there are networking problems and thus all operations on /var/mail
> > keep 'hanging', I would like to be able to login as root on console and
> > fix it. With the default login.conf, this is not possible though, since
> > one of the first things /bin/sh does, is check $MAIL for new mail.
> > 
> > So I have three questions:
> > 
> > 	2) Is there (going to be) an 'unsetenv' possibility in
> > 	   login.conf, so that I can still use 'default' for all classes
> > 	   and just unsetenv MAIL for sysadmins and root ?
> 
> yes ;)
> 
> root:\
>         :ignorenologin:\
> 	:setenv=BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\
> 	:tc=default:

Cyrille.
-- 
Cyrille Lefevre                 mailto:cyrille.lefevre@laposte.net

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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