From owner-freebsd-questions Thu Feb 13 5:35:54 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 3A0C137B401 for ; Thu, 13 Feb 2003 05:35:53 -0800 (PST) Received: from hardesty.saintaardvarkthecarpeted.com (h24-76-91-242.vc.shawcable.net [24.76.91.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57AF643F3F for ; Thu, 13 Feb 2003 05:35:52 -0800 (PST) (envelope-from aardvark@hardesty.saintaardvarkthecarpeted.com) Received: from hardesty.saintaardvarkthecarpeted.com (localhost.localdomain [127.0.0.1]) by hardesty.saintaardvarkthecarpeted.com (8.12.5/8.12.5) with ESMTP id h1DDVAig016302; Thu, 13 Feb 2003 05:31:10 -0800 Received: (from aardvark@localhost) by hardesty.saintaardvarkthecarpeted.com (8.12.5/8.12.5/Submit) id h1DDV8Md016300; Thu, 13 Feb 2003 05:31:08 -0800 Date: Thu, 13 Feb 2003 05:31:08 -0800 From: Saint Aardvark the Carpeted To: "Colin J. Raven" Cc: freebsd-questions@freebsd.org Subject: Re: Customizing /etc/motd Message-ID: <20030213133108.GG14390@hardesty.saintaardvarkthecarpeted.com> References: <015401c2d360$3339c3a0$1500000a@scrk.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <015401c2d360$3339c3a0$1500000a@scrk.com> User-Agent: Mutt/1.4i 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 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. Hope this helps, Hugh -- Saint Aardvark the Carpeted aardvark@saintaardvarkthecarpeted.com Because the plural of Anecdote is Myth. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message