From owner-freebsd-questions Sat Sep 12 12:33:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA04135 for freebsd-questions-outgoing; Sat, 12 Sep 1998 12:33:51 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA04128 for ; Sat, 12 Sep 1998 12:33:10 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from ben by scientia.demon.co.uk with local (Exim 2.02 #1) id 0zHuMf-0002dK-00; Sat, 12 Sep 1998 19:25:41 +0100 Date: Sat, 12 Sep 1998 19:25:41 +0100 From: Ben Smithurst To: System Administrator , questions@FreeBSD.ORG Subject: Re: owners Message-ID: <19980912192541.B9698@scientia.demon.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: User-Agent: Mutt/0.94.3i (FreeBSD 3.0-CURRENT i386) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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