Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!fauern!NewsServ!stumpf From: stumpf@Informatik.TU-Muenchen.DE (Markus Stumpf) Newsgroups: comp.windows.x Subject: Re: motd under xdm? Keywords: motd login xlogin Message-ID: <1991Feb21.135515.13026@newsserv.informatik.tu-muenchen.de> Date: 21 Feb 91 13:55:15 GMT References: <1991Feb18.143837.16409@rice.edu> <10160@orca.wv.tek.com> Sender: news@newsserv.informatik.tu-muenchen.de Reply-To: stumpf@Informatik.TU-Muenchen.DE (Markus Stumpf) Organization: Technische Universitaet Muenchen, Germany Lines: 26 Originator: stumpf@sunsystem2.informatik.tu-muenchen.de There is also my xlogin program available on expo.lcs.mit.edu:contrib. It has also been posted in comp.sources.x, Volume 08 Issue 51. It's typically started in xdm's Xstartup and it handles quotas, lastlogin, utmp, wtmp, /etc/motd, /etc/nologin and $HOME/.hushlogin However, there is a little bug in it, which I haven't already fixed (i.e. sent out a patch for). You have to add the line exit(!do_login); as the last statement in xlogin.c:main(). Otherwise the exit-code is 1, if a user has a $HOME/.hushlogin file and that is interpreted as "deny login". If you can't get it on either place, drop me a note and I'd be glad to send you a copy by mail! \Maex -- +- Markus Stumpf Technische Universitaet Muenchen -+ | Institut fuer Informatik | | stumpf@informatik.tu-muenchen.de Postfach 202420 | +- ...@{unido.uucp,relay.cs.net} D-8000 Muenchen 2, West Germany -+