🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.security.misc
Article #265

Re: hushlogin

#265
From: Tim Gurbick
Date: Mon, 07 Sep 1992 04:25
25 lines
1829 bytes
In article <36961@uflorida.cis.ufl.edu> spp@crane.cis.ufl.edu (Stephen Potter) writes:
>Here's an interesting little hack that one of our consultants here at UF came
>up with.  This is nice for those of us that have to use public workstations,
>and have to log on and off a lot, or for windowing environments.
>
># 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: <Bu6xn0.B76@usenet.ucs.indiana.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!zaphod.mps.ohio-state.edu!usc!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!teg
References: <1992Aug27.200330.24859@news.duc.auburn.edu> <1992Aug27.214859.8408@das.harvard.edu> <36961@uflorida.cis.ufl.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.security.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!zaphod.mps.ohio-state.edu!usc!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!teg
From: teg@usenet.ucs.indiana.edu (Tim Gurbick)
Subject: Re: hushlogin
Message-ID: <Bu6xn0.B76@usenet.ucs.indiana.edu>
Followup-To: comp.security.misc
Keywords: motd,hushlogin,login,find
Sender: tgurbick@indiana.edu
Organization: The Bank of the Black Monks of St. Herod
References: <1992Aug27.200330.24859@news.duc.auburn.edu> <1992Aug27.214859.8408@das.harvard.edu> <36961@uflorida.cis.ufl.edu>
Date: Mon, 7 Sep 1992 04:25:48 GMT
Lines: 25