Date: Thu, 13 Feb 2003 16:19:21 +0100 From: Cliff Sarginson <cls@raggedclown.net> To: freebsd-questions@freebsd.org Subject: Re: Customizing /etc/motd Message-ID: <20030213151921.GB4472@raggedclown.net> In-Reply-To: <20030213133108.GG14390@hardesty.saintaardvarkthecarpeted.com> References: <015401c2d360$3339c3a0$1500000a@scrk.com> <20030213133108.GG14390@hardesty.saintaardvarkthecarpeted.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030213151921.GB4472>