benson@iris.eecs.ucdavis.EDU (Gregory D. Benson) (05/23/91)
Ok here is something I thought would be easy to change. I want to add a message before the login prompt to something Type "guest" to enter system login: I have found a file /etc/issue that allows me to do this for direct connect serial lines. But it doesn't work for telnet sessions (which is really what I need). I realize that I can change the prompt in /etc/gettydefs, but this still won't change the login prompt for telnet connections. I am running SCO UNIX SYSV 3.2 (386). Any help would be appreciated. Greg Benson benson@iris.eecs.ucdavis.edu
jsharp@isis.cs.du.edu (Joe Sharp) (05/23/91)
In article <9020@ucdavis.ucdavis.edu> benson@iris.eecs.ucdavis.EDU (Gregory D. Benson) writes: >Ok here is something I thought would be easy to change. >I want to add a message before the login prompt to something > >Type "guest" to enter system >login: > >I have found a file /etc/issue that allows me to do this >for direct connect serial lines. But it doesn't work >for telnet sessions (which is really what I need). > >I realize that I can change the prompt in /etc/gettydefs, >but this still won't change the login prompt for telnet >connections. > On most machines, you can do this by changing the inetd.conf file to call telnetd_script instead of telnetd. In this script file, you would cat out the message and then exec the telnetd program. This is what I do and it works. Joe Sharp jsharp@isis.cs.du.edu
slootman@dri.nl (Paul Slootman) (05/23/91)
benson@iris.eecs.ucdavis.EDU (Gregory D. Benson) writes: >I want to add a message before the login prompt to something > >Type "guest" to enter system >login: > >I have found a file /etc/issue that allows me to do this >for direct connect serial lines. But it doesn't work >for telnet sessions (which is really what I need). > [deleted] > >I am running SCO UNIX SYSV 3.2 (386). Doing a quick strings /etc/telnetd | grep etc gives me (amongst other things) /etc/telbanner and yes, the contents of this file (if present) will be displayed before the "login:". You were right; it's simple. (I find strings one of the most useful commands for finding out this type of thing.) Paul.
thw@mcshh.hanse.de (Thomas Wieske) (05/24/91)
benson@iris.eecs.ucdavis.EDU (Gregory D. Benson) writes: >Ok here is something I thought would be easy to change. >I want to add a message before the login prompt to something >Type "guest" to enter system >login: >I have found a file /etc/issue that allows me to do this >for direct connect serial lines. But it doesn't work >for telnet sessions (which is really what I need). For telnet is this the file /etc/telbanner. You can this with 'ln /etc/issue /etc/telbanner' linken. >I realize that I can change the prompt in /etc/gettydefs, >but this still won't change the login prompt for telnet >connections. >I am running SCO UNIX SYSV 3.2 (386). >Any help would be appreciated. My tip... >Greg Benson bye thw -- .-------. ---* Wieske's Crew KG, Netzwerk/Kommunikation/Service/Beratung | \ / | --* \ D-2000 Hamburg 76, Lessingstr.2, Tel.: +49 40 / 2500146 **---- ? - | -* \ \ Th. Wieske, Priv. 2512491 Box/Traily: 259704/259308 // | / \ | __>_>_>____________________thw@mcshh.hanse.de____________________// `-------'