From owner-freebsd-chat@FreeBSD.ORG Thu Sep 15 11:19:42 2005 Return-Path: X-Original-To: freebsd-chat@FreeBSD.ORG Delivered-To: freebsd-chat@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C5A1F16A41F for ; Thu, 15 Sep 2005 11:19:42 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A59243D46 for ; Thu, 15 Sep 2005 11:19:41 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (xwfwne@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.1/8.13.1) with ESMTP id j8FBJd0s030499 for ; Thu, 15 Sep 2005 13:19:39 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.1/8.13.1/Submit) id j8FBJdJp030498; Thu, 15 Sep 2005 13:19:39 +0200 (CEST) (envelope-from olli) Date: Thu, 15 Sep 2005 13:19:39 +0200 (CEST) Message-Id: <200509151119.j8FBJdJp030498@lurza.secnetix.de> From: Oliver Fromme To: freebsd-chat@FreeBSD.ORG In-Reply-To: <20050905124654.5e8f9fce@localhost> X-Newsgroups: list.freebsd-chat User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.11-RELEASE (i386)) Cc: Subject: Re: ssh pre-login message X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-chat@FreeBSD.ORG List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2005 11:19:42 -0000 Jakob Breivik Grimstveit wrote: > Aaron Holmes wrote on Mon, 05 Sep 2005 03:11: > > I'm not entirely sure this is the proper place for this, but how can i > > get a pre-login message to show up before the "login as:" prompt on > > freebsd 5x > > From `man sshd_config`: > > Banner In some jurisdictions, sending a warning message before authenti- > cation may be relevant for getting legal protection. The con- > tents of the specified file are sent to the remote user before > authentication is allowed. This option is only available for > protocol version 2. By default, no banner is displayed. In case the OP had local logins in mind (syscons, not ssh), the have a look at the gettytab(5) manpage. It documents two capabilities that can be added to /etc/gettytab for local logins: The "im" capability for short banner strings (one line) that will be printed before the login prompt, and the "if" capability to specify a file name. After changing the gettytab, you need to kill the getty processes. They will be restarted automatically by init(8). Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "Python tricks" is a tough one, cuz the language is so clean. E.g., C makes an art of confusing pointers with arrays and strings, which leads to lotsa neat pointer tricks; APL mistakes everything for an array, leading to neat one-liners; and Perl confuses everything period, making each line a joyous adventure . -- Tim Peters