Article View: comp.security.misc
Article #287Re: hushlogin
From: Gene Rackow
Date: Tue, 08 Sep 1992 02:31
Date: Tue, 08 Sep 1992 02:31
33 lines
2150 bytes
2150 bytes
The problem with both methods listed below is what happens in an NFS
environment where you may be logging into any one of 10 or 20 or 1000 different
machines with different and possibly meaningful motd files on them.
Adding a ".`hostname`" to the stored file name in the scripts would sure help.
find /etc/motd -newer ~/.hushlogin.`hostname` -exec more {} \; -a -exec touch\
~/.hushlogin.`hostname` \;
In article <Bu6xn0.B76@usenet.ucs.indiana.edu> teg@usenet.ucs.indiana.edu (Tim Gurbick) writes:
>In article <36961@uflorida.cis.ufl.edu> spp@crane.cis.ufl.edu (Stephen Potter)
>> writes:
>> ...
>># Show motd only if it has changed
>>cmp -s ~/.hushlogin /etc/motd
>>if ($status != 0) then
>> tee ~/.hushlogin < /etc/motd | more
>>endif
>
>Which could also be somewhat streamlined into:
>
>find /etc/motd -newer ~/.hushlogin -exec cat {} \; -a -exec touch \
> ~/.hushlogin \;
>
>(note the trailing semi is really on the same line, and is required for
>proper command termination)
>
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>Tim Gurbick a.k.a. teg@peabody.iusb.indiana.edu Dept of Math & CS: 237-GEEK
> Help: 911 d.b.a. teg@natasha.iusb.indiana.edu `whois \!TEG12` Traci:0x45
>#include <fnord.h> tgurbick@indiana.edu Chi mi frena in tal momento? emacs!
>Me: International Unix Standards Bored, educational division: (219)237-IHEX
>address: CS Dept IUSB POB 7111 1700 Mishawaka Avenue, South Bend, IN 46634
>"Work FOR? I don't work FOR anybody... I'm just having fun." - The Doctor
Technical Details
Message-ID:
<71591951910198@altair.mcs.anl.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!sdd.hp.com!ux1.cso.uiuc.edu!milo.mcs.anl.gov!altair.mcs.anl.gov!rackowReferences:
<1992Aug27.214859.8408@das.harvard.edu> <36961@uflorida.cis.ufl.edu> <Bu6xn0.B76@usenet.ucs.indiana.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.security.misc Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!sdd.hp.com!ux1.cso.uiuc.edu!milo.mcs.anl.gov!altair.mcs.anl.gov!rackow From: rackow@altair.mcs.anl.gov (Gene Rackow) Subject: Re: hushlogin Message-ID: <71591951910198@altair.mcs.anl.gov> Keywords: motd,hushlogin,login,find Sender: usenet@mcs.anl.gov Nntp-Posting-Host: altair.mcs.anl.gov Organization: Argonne National Laboratory, Chicago, Illinois References: <1992Aug27.214859.8408@das.harvard.edu> <36961@uflorida.cis.ufl.edu> <Bu6xn0.B76@usenet.ucs.indiana.edu> Date: Tue, 8 Sep 1992 02:31:59 GMT Lines: 35