Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 May 1998 00:33:07 -0700
From:      Studded <Studded@san.rr.com>
To:        Dan Nelson <dnelson@emsphone.com>
Cc:        questions@FreeBSD.ORG
Subject:   /etc/issue - like behaviour (Was: FreeBSD Questions)
Message-ID:  <354C1DB3.1CF71444@san.rr.com>
References:  <Pine.SGI.3.96.980501091945.29013D-100000@tui.pinnacle.co.nz> <354BD69C.D8ACC42@san.rr.com> <19980502223935.A16476@emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?354C1DB3.1CF71444>