Good idea, thanks, and I now realize that it won't work, and neither will changing /bin/login -- because sshd does not seem to honor either one.
I will have to try re-installing sshd with the --with-login flag. When I last tried that flag, the use of a .hushlogin file caused failed logins for some reason, so I reinstalled sshd without --with-login . Drat! I hate it when software bypasses standard system routines. Rahul > Date: Wed, 24 Feb 99 23:26:47 PST > From: Matthew Dillon <dil...@apollo.backplane.com> > To: Rahul Dhesi <dh...@rahul.net> > Cc: freebsd-current@FreeBSD.ORG > Message-Id: <199902250726.xaa00...@apollo.backplane.com> > Subject: Re: please don't check mail for root logins > :I have a suggestion for the FreeBSD maintainers. > : > :In /bin/login, please don't check for mail when the user is root. And > :in the case that the mail filesystem is mounted via NFS from a > :non-responding server, it hangs root logins. > : > :Root logins on machine A should never ever ever require machine B > :to be up. > : > :Rahul > > You should be able to fix this trivially in /etc/login.conf. Look > at the standard: entry's setenv for MAIL and do something similar for > root's, pointing MAIL somewhere else. I haven't tried this myself, > but it should work. > > -Matt > Matthew Dillon > <dil...@backplane.com> > > > To Unsubscribe: send mail to majord...@freebsd.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message