From owner-freebsd-questions Sun May 3 00:33:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA23123 for freebsd-questions-outgoing; Sun, 3 May 1998 00:33:14 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dt050n33.san.rr.com (@dt050n33.san.rr.com [204.210.31.51]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA23117 for ; Sun, 3 May 1998 00:33:10 -0700 (PDT) (envelope-from Studded@san.rr.com) Received: from san.rr.com (Studded@localhost [127.0.0.1]) by dt050n33.san.rr.com (8.8.8/8.8.8) with ESMTP id AAA01824; Sun, 3 May 1998 00:33:08 -0700 (PDT) (envelope-from Studded@san.rr.com) Message-ID: <354C1DB3.1CF71444@san.rr.com> Date: Sun, 03 May 1998 00:33:07 -0700 From: Studded Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.05 [en] (X11; I; FreeBSD 2.2.6-STABLE-0502 i386) MIME-Version: 1.0 To: Dan Nelson CC: questions@FreeBSD.ORG Subject: /etc/issue - like behaviour (Was: FreeBSD Questions) References: <354BD69C.D8ACC42@san.rr.com> <19980502223935.A16476@emsphone.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dan Nelson wrote: > > In the last episode (May 02), Studded said: > > Jonathan Chen wrote: > > > > > Check out the im= field in /etc/gettytab > > > > I have a couple questions related to this. For one, the /etc/issue > > question comes up often, is there any way to hack getty to allow the im > > field to specify a file? I am sure this would be a welcome addition. > > check out the "if" field. OK, that is useful as far as it goes (which is only as far as console logins). > > The other question is a long standing one, in my brain anyway. :) Is > > there any way to make the im field work with ssh? > > ssh doesn't use getty. Neither does telnetd. Actually telnetd does use the he, hn and im entries from gettytab. > You can print a message, or run arbitrary commands, through an ssh > login by creating a /usr/local/etc/sshrc script and displaying the > message from there. I had seen that in the man page, however it seems to me that it only works for things that happen after the client is logged in. Can you give an example of using it for a pre-login message? A friend of mine and I are willing to hack the /etc/issue.net capability into telnetd, however before we go through that it would be nice to have a consensus as to what the most desirable method of accomplishing that is. Some of our ideas are a command line option for telnetd, autodetection of /etc/issue.net (with command line override, this is my personal favorite), or ... we are open to suggestions. :) On another note, is there any reason not to add if=/etc/issue: to the default gettytab so that it "just works" for people that want to use it? It doesn't seem to hurt anything if the file doesn't exist, and it would save a lot of grief for people who are familiar with that format. I'd be willing to do the patches and documentation for it if there's interest. Doug -- *** Chief Operations Officer, DALnet IRC network *** *** Proud designer and maintainer of the world's largest Internet *** Relay Chat server with 5,328 simultaneous connections. *** Try spider.dal.net on ports 6662-4 (Powered by FreeBSD) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message