From owner-freebsd-questions Thu Feb 13 7:19:34 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 3B8CD37B401 for ; Thu, 13 Feb 2003 07:19:33 -0800 (PST) Received: from post-21.mail.nl.demon.net (post-21.mail.nl.demon.net [194.159.73.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F70F43FA3 for ; Thu, 13 Feb 2003 07:19:32 -0800 (PST) (envelope-from cls@raggedclown.net) Received: from [212.238.197.102] (helo=mailhost.raggedclown.net) by post-21.mail.nl.demon.net with esmtp (Exim 3.36 #1) id 18jL99-000ATS-00 for freebsd-questions@freebsd.org; Thu, 13 Feb 2003 15:19:31 +0000 Received: from localhost (localhost [127.0.0.1]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [dawn]) with ESMTP id 927D4C7EF for ; Thu, 13 Feb 2003 16:19:30 +0100 (CET) Received: from willow.raggedclown.net (willow.raggedclown.intra [192.168.1.10]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [dawn]) with ESMTP id DBFB81A1D for ; Thu, 13 Feb 2003 16:19:20 +0100 (CET) Received: by willow.raggedclown.net (Ragged Clown Host [willow], from userid 1009) id 145AE225F9; Thu, 13 Feb 2003 16:19:21 +0100 (CET) Date: Thu, 13 Feb 2003 16:19:21 +0100 From: Cliff Sarginson To: freebsd-questions@freebsd.org Subject: Re: Customizing /etc/motd Message-ID: <20030213151921.GB4472@raggedclown.net> References: <015401c2d360$3339c3a0$1500000a@scrk.com> <20030213133108.GG14390@hardesty.saintaardvarkthecarpeted.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030213133108.GG14390@hardesty.saintaardvarkthecarpeted.com> User-Agent: Mutt/1.5.3i X-Virus-Scanned: by AMaViS 0.3.12pre8 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 On Thu, Feb 13, 2003 at 05:31:08AM -0800, Saint Aardvark the Carpeted wrote: > Colin J. Raven disturbed my sleep to write: > > Greetings all! > > I'd like to tweak /etc/motd to give ssh users a personalized login text. > > Printing the last time the user logged in appears to be part of login(1) > itself, not /etc/motd. I suppose you could always modify the source > code to print the message you like, but an easier way would be to append > something to /etc/profile: > > echo 'Welcome to FreeBSD, $USER!' > > $USER is the user's account name. And it looks like you need the single > quotes there to get the exclamation point to work. > You could go one step further in user friendliness (sic) .. put the person's nickname in the GECOS field of the password file, find out the time of day and when your boss logins at 8:30 a.m. it could say "Good Morning lame-brain loser. What's the matter ? Couldn't sleep last night ?" "Or were you too busy moon-howling ?" :) -- Regards Cliff Sarginson The Netherlands [ This mail has been checked as virus-free ] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message