From owner-freebsd-questions Thu Feb 13 5: 4:59 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 4DC8B37B401 for ; Thu, 13 Feb 2003 05:04:58 -0800 (PST) Received: from smtp.hccnet.nl (smtp.hccnet.nl [62.251.0.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4338343F75 for ; Thu, 13 Feb 2003 05:04:57 -0800 (PST) (envelope-from duiker@haggis.nl) Received: from zeus by smtp.hccnet.nl via fia148-72.dsl.hccnet.nl [62.251.72.148] with ESMTP for id h1DD4rqP015767 (8.12.5/2.00); Thu, 13 Feb 2003 14:04:55 +0100 (MET) From: "Colin J. Raven" To: "BSD Questions" Subject: Customizing /etc/motd Date: Thu, 13 Feb 2003 14:02:44 +0100 Message-ID: <015401c2d360$3339c3a0$1500000a@scrk.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal 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 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,=20 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?=20 I'm no shellscripting guru, so it needs to be *reasonably* simple :-)=20 Regards & TIA, -Colin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message