From owner-freebsd-questions Thu Feb 13 5:28:45 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 8979137B406 for ; Thu, 13 Feb 2003 05:28:43 -0800 (PST) Received: from cultdeadsheep.org (charon.cultdeadsheep.org [80.65.226.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFDC343F75 for ; Thu, 13 Feb 2003 05:28:41 -0800 (PST) (envelope-from sheepkiller@cultdeadsheep.org) Received: (qmail 42874 invoked from network); 13 Feb 2003 13:28:39 -0000 Received: from unknown (HELO lucifer.cultdeadsheep.org) (192.168.0.2) by goofy.cultdeadsheep.org with SMTP; 13 Feb 2003 13:28:39 -0000 Date: Thu, 13 Feb 2003 14:28:42 +0100 From: Clement Laforet To: "Colin J. Raven" Cc: freebsd-questions@freeBSD.org Subject: Re: Customizing /etc/motd Message-Id: <20030213142842.3934aef2.sheepkiller@cultdeadsheep.org> In-Reply-To: <015401c2d360$3339c3a0$1500000a@scrk.com> References: <015401c2d360$3339c3a0$1500000a@scrk.com> Organization: tH3 cUlt 0f tH3 d3@d sH33p X-Mailer: Sylpheed version 0.8.10 (GTK+ 1.2.10; i386-portbld-freebsd4.7) X-Face: ._cVVRDn#-2((lnfi^P7CoD4htI$4+#G/G)!w|,}H5yK~%(3-C.JlEYbOjJGFwJkt*7N^%z jYeu[;}]}F"3}l5R'l"X0HbvT^D\Q&%deCo)MayY`);TO Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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 "Last Login" is not handled by "motd file" It's done by sshd. in sshd_config "PrintLastLog yes" On Thu, 13 Feb 2003 14:02:44 +0100 "Colin J. Raven" wrote: > Greetings all! > I'd like to tweak /etc/motd to give ssh users a personalized login text. > > Perhaps something like; > > FreeBSD 4.7-STABLE #0: Sun Feb 9 19:32:05 CET 2003 (This already exists > of course) > > {username}, Welcome to FreeBSD! > Blah Blah Blah > > I notice that "last login" is the first line in this file, > > Last login: Thu Feb 13 13:55:22 2003 from 131gorio.dsl.provider-name > > yet examining the file itself doesn't show how this is achieved (if it > did, then I would play with it and try extending the functionality) > > > Can anyone suggest how the above could be accomplished? > I'm no shellscripting guru, so it needs to be *reasonably* simple :-) > > Regards & TIA, > -Colin > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message