Customizing /etc/motd

2003-02-13 Thread Colin J. Raven
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

Re: Customizing /etc/motd

2003-02-13 Thread Dirk-Willem van Gulik
On Thu, 13 Feb 2003, Colin J. Raven wrote: I'd like to tweak /etc/motd to give ssh users a personalized login text. su root ..type root password vi /etc/motd or, if you do not know the vi editor, use su root ..type root password ee /etc/motd

RE: Customizing /etc/motd

2003-02-13 Thread Colin J. Raven
+ On Thu, 13 Feb 2003, Colin J. Raven wrote: + + I'd like to tweak /etc/motd to give ssh users a + personalized login text. + + su root + ..type root password + vi /etc/motd Yes! :-)I know how to edit the file, but I'm trying to figure out how to personalize it on a per-user

Re: Customizing /etc/motd

2003-02-13 Thread Clement Laforet
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 [EMAIL PROTECTED] wrote: Greetings all! I'd like to tweak /etc/motd to give ssh users a personalized login text. Perhaps something like; FreeBSD

RE: Customizing /etc/motd

2003-02-13 Thread Colin J. Raven
+ motd is a flat file, so it won't take the customizations + you'd need to do this :) Yes indeed, I was aware of this - hence my puzzlement as to how this might be done. + The last login is done by lastlog, which is called by login, + not from motd. nodding sagely H

RE: Customizing /etc/motd

2003-02-13 Thread Dirk-Willem van Gulik
For per user - you may do perhaps someting with /etc/csh.login (assuming they are using csh). Like adding a check for a file and cating that. Dw To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message

Re: Customizing /etc/motd

2003-02-13 Thread Saint Aardvark the Carpeted
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

Re: Customizing /etc/motd

2003-02-13 Thread Cliff Sarginson
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,