Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Sep 1996 14:50:42 -0500 (CDT)
From:      Joe Greco <jgreco@brasil.moneng.mei.com>
To:        kuku@gilberto.physik.rwth-aachen.de (Christoph Kukulies)
Cc:        freebsd-hackers@freefall.freebsd.org
Subject:   Re: /etc/issue
Message-ID:  <199609211950.OAA14040@brasil.moneng.mei.com>
In-Reply-To: <199609211658.SAA22796@gilberto.physik.rwth-aachen.de> from "Christoph Kukulies" at Sep 21, 96 06:58:08 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> Is this an issue? Should FreeBSD have such a file? Or is there an
> equivalent? 
> 
> mgetty+sendfax require such a file when mgetty fakes a login, i.e.
> it sends the issue file before exec'ing /usr/bin/login.

You can put a moderately long (but not a page long) message in
/etc/gettytab:

> telnet smyrno.sol.net.
Trying 206.55.64.117 ...
Connected to smyrno.sol.net.
Escape character is '^]'.


sol.net Network Services - Milwaukee, WI

This is a restricted access system.  Unauthorized access is prohibited.
For technical support or problems, please contact <service@ns.sol.net>.

FreeBSD 2.0.5R UNIX (smyrno.sol.net)

(ttyp2) login: ^D
Connection closed by foreign host.
> cat /etc/gettytab
[...]
default:\
	:cb:ce:ck:lc:fd#1000:im=\r\n\r\nsol.net Network Services - Milwaukee, WI\r\n\r\nThis is a restricted access system.  Unauthorized access is prohibited.\r\nFor technical support or problems, please contact <service@ns.sol.net>.\r\n\r\nFreeBSD 2.0.5R UNIX (%h)\r\n\r\n(%t) :sp#1200:
[...]

I realize that this is somewhat different from /etc/issue, but on the other
hand, you can provide different initial messages for each TTY, etc.

Been doing it for years... even back in SunOS 4.1 days, where I hacked the
support into a few things such as telnetd.

Speaking of which:  telnetd uses the gettytab "default" entry for its
own im=.

... JG



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609211950.OAA14040>