From owner-freebsd-stable Wed Jul 10 18:21:40 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9ACE337B400 for ; Wed, 10 Jul 2002 18:21:30 -0700 (PDT) Received: from smtp.noos.fr (zola.noos.net [212.198.2.76]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7F5643E58 for ; Wed, 10 Jul 2002 18:21:28 -0700 (PDT) (envelope-from root@gits.dyndns.org) Received: (qmail 40832957 invoked by uid 0); 11 Jul 2002 01:21:27 -0000 Received: from unknown (HELO gits.gits.dyndns.org) ([212.198.229.153]) (envelope-sender ) by 212.198.2.76 (qmail-ldap-1.03) with SMTP for ; 11 Jul 2002 01:21:27 -0000 Received: from gits.gits.dyndns.org (e2epfxapzitoueop@localhost [127.0.0.1]) by gits.gits.dyndns.org (8.12.5/8.12.5) with ESMTP id g6B1KCTf083194; Thu, 11 Jul 2002 03:21:27 +0200 (CEST) (envelope-from root@gits.dyndns.org) Received: (from root@localhost) by gits.gits.dyndns.org (8.12.5/8.12.5/Submit) id g6B0qEVW082831; Thu, 11 Jul 2002 02:52:14 +0200 (CEST) (envelope-from root) Date: Thu, 11 Jul 2002 02:52:14 +0200 From: Cyrille Lefevre To: Marc Olzheim Cc: stable@freebsd.org, marcolz@stack.nl Subject: Re: /bin/sh, $MAIL and login.conf Message-ID: <20020711005214.GD82744@gits.dyndns.org> References: <20020705132210.A20062@ilse.nl> <20020708203130.GA6805@gits.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020708203130.GA6805@gits.dyndns.org> User-Agent: Mutt/1.3.99i Organization: ACME X-Face: V|+c;4!|B?E%BE^{E6);aI.[< List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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