Return to BSD News archive
Xref: sserve comp.unix.bsd:16162 comp.unix.questions:61214 Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!newshost.gu.edu.au!news From: Tony Nugent <T.Nugent@sct.gu.edu.au> Newsgroups: comp.unix.bsd,comp.unix.questions Subject: Re: MOTD? (BSDI - Newbie!) Date: 14 Feb 1995 02:17:41 GMT Organization: Griffith University Brisbane Queensland Australia Lines: 47 Message-ID: <3hp3s5$4qb@griffin.itc.gu.edu.au> References: <3hok14$s9@panix.com> Reply-To: T.Nugent@sct.gu.edu.au NNTP-Posting-Host: kraken.itc.gu.edu.au acinader@panix.com (Arthur Cinader) writes: >When I login to my system I get two lines of copywright info. >When I login to my i-net providers system, I don't get that. I presume that this is the /etc/motd file that you are talking about. >Can I change my system so that it doesn't show me this >copywright stuff? Where would it be? /etc/motd normally gets shown on login by /etc/.login (or /etc/csh.login which is linked to /etc/.login on the systems I have used). There is a test in that shell script that will show /etc/motd UNLESS there exists a ~/.hushlogin file. Something like this: if (! -e .hushlogin ) then cat /etc/motd .... quota -v .... .... endif >I only have the binaries, not the source. You probably don't need to change any binaries or even /etc/.login... just create a ~/.hushlogin file (eg, "touch $HOME/.hushlogin") and that should stop it from showing. If you want to see it ONLY if it changes, try putting this into your ~/.login file: if ! { /usr/bin/cmp -s ~/.hushlogin /etc/motd } \ /usr/bin/tee ~/.hushlogin </etc/motd Cheers Tony Tony Nugent Griffith University, Brisbane, Queensland, Australia // \\ // \\ // \\ // \\ // \\ // \\ // \\ // \': | \\ // | :,\\': | \\ // | :,\\': | \': | \\ // | :,\\': | \\ | | \\ // | | // \\ | | \\ // | | // \\ | |\\ | | \\ // | | // \\ | \\ | :,\\': | // \\ | :,\\': | // \\ | \\ | :,\\': | // \\ \\ // \\ // \\ // \\ // \\ \\ // \\ // \\ T.Nugent@sct.gu.edu.au tnugent@gucis.cit.gu.edu.au