From owner-freebsd-questions Thu Jan 9 19: 2:44 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C5BD137B401 for ; Thu, 9 Jan 2003 19:02:42 -0800 (PST) Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3796D43F3F for ; Thu, 9 Jan 2003 19:02:42 -0800 (PST) (envelope-from pdb2@u.washington.edu) Received: from u.washington.edu (12-231-115-57.client.attbi.com[12.231.115.57]) by rwcrmhc52.attbi.com (rwcrmhc52) with SMTP id <2003011003024105200mglh8e>; Fri, 10 Jan 2003 03:02:41 +0000 Message-ID: <3E1E37CF.10209@u.washington.edu> Date: Thu, 09 Jan 2003 19:02:39 -0800 From: paul beard Organization: University of Washington User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Coreix Systems - UNIX Developers Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Motd Updating References: <001401c2b915$54172550$2d01a8c0@apollo> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Coreix Systems - UNIX Developers wrote: > > Can someone tell me he name of the .c or .h file containing code to do the > updating of MOTD, > i want to add company specific support data to the source so it can be > updated to motd on a daily basis, but do not want > it to be easily accessiably be sysadmins. > i have done it through a /etc/perodic/daily/script file, but clients can > find it i want to complile it in the source. > from motd(5): DESCRIPTION The file /etc/motd is normally displayed by login(1) after a user has logged in but before the shell is run. It is generally used for important system-wide announcements. During system startup, a line containing the kernel version string is prepended to this file. so perhaps you need to look into how login(1) works. -- Paul Beard 8040 27th Ave NE Seattle WA 98115 / 206 529 8400 UFO's are for real: the Air Force doesn't exist. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message