Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Sep 1998 19:25:41 +0100
From:      Ben Smithurst <ben@scientia.demon.co.uk>
To:        System Administrator <root@rabbit.eng.miami.edu>, questions@FreeBSD.ORG
Subject:   Re: owners
Message-ID:  <19980912192541.B9698@scientia.demon.co.uk>
In-Reply-To: <Pine.BSF.4.03.9809111832570.625-100000@rabbit.eng.miami.edu>
References:  <Pine.BSF.4.03.9809111832570.625-100000@rabbit.eng.miami.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
System Administrator wrote:

> Also, i forgot which file (probably in /etc) generates the motd file upon
> rebooting.  any ideas?

Hmm... I don't know why your From: header says ``System Administrator''
when you can't even use grep.

$ grep /etc/motd /etc/*
grep: /etc/master.passwd: Permission denied
grep: /etc/skeykeys: Permission denied
grep: /etc/spwd.db: Permission denied
grep: /etc/ssh_host_key: Permission denied
grep: /etc/ssh_random_seed: Permission denied
grep: /etc/uucp: Permission denied
/etc/login.conf:	:welcome=/etc/motd:\
/etc/rc.local:echo -n 'rebuilding /etc/motd:'
/etc/rc.local:awk '{if (NR == 1) {if ($1 == "FreeBSD") {next} else {print "\n"$0}} else {print}}' < /etc/motd >> $T
/etc/rc.local:cp $T /etc/motd
/etc/rc.local:chmod 644 /etc/motd

That should give you a pretty large clue.

-- 
Ben Smithurst : ben@scientia.demon.co.uk : http://www.scientia.demon.co.uk/

PGP: 0x99392F7D - 3D 89 87 42 CE CA 93 4C  68 32 0E D5 36 05 3D 16
     http://www.scientia.demon.co.uk/ben/pgp-key.html (or use keyservers)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980912192541.B9698>