Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2003 14:28:42 +0100
From:      Clement Laforet <sheepkiller@cultdeadsheep.org>
To:        "Colin J. Raven" <duiker@haggis.nl>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
"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" <duiker@haggis.nl> 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, 
> <snip>
> Last login: Thu Feb 13 13:55:22 2003 from 131gorio.dsl.provider-name
> </snip>
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030213142842.3934aef2.sheepkiller>