# # How do I get /etc/issue to print for telnet sessions? (SCO Unix)
APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

SCO Unix TCP/IP and NFS FAQ

I've removed advertising from most of this site and will eventually clean up the few pages where it remains.

While not terribly expensive to maintain, this does cost me something. If I don't get enough donations to cover that expense, I will be shutting the site down in early 2020.

If you found something useful today, please consider a small donation.



Some material is very old and may be incorrect today

© December 2003 (various)

This article is from a FAQ concerning SCO operating systems. While some of the information may be applicable to any OS, or any Unix or Linux OS, it may be specific to SCO Xenix, Open There is lots of Linux, Mac OS X and general Unix info elsewhere on this site: Search this site is the best way to find anything.

How do I get /etc/issue to print for telnet sessions (SCO Unix)?

Modern releases use /etc/issue for telnet sessions

See TA 640279. Basically, you will need to create a file (we'll call it /etc/telbanner), owned by bin/bin and readable by everyone, with the message to be printed. Next, create the following shell script and call it /etc/telbannerd:


#!/bin/sh
# name of file with banner
BANNER_FILE=/etc/telbanner
# name of telnet daemon
TELNETD=/etc/telnetd
# print banner if it exists and is readable
[ -r ${BANNER_FILE} ] && cat ${BANNER_FILE}
# now pass control to telnetd
exec ${TELNETD} $*
 

This script should be owned by bin/bin and world-executable and world- readable. Now edit the telnet line in /etc/inetd.conf and change the /etc/telnetd to /etc/telbannerd. Leave everything else exactly as it is. Finally, you'll need to send a SIGHUP to inetd to force it to re-read /etc/inetd.conf.

One other note - in order for the above to work, you need the kernel support for #! turned on; see the entry on hashplingenable in section 3 of this FAQ.

If you found something useful today, please consider a small donation.



Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

->
-> How do I get /etc/issue to print for telnet sessions? (SCO Unix)


Inexpensive and informative Apple related e-books:

El Capitan: A Take Control Crash Course

Take Control of Numbers

iOS 10: A Take Control Crash Course

Take Control of Parallels Desktop 12

Take Control of iCloud






Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us


Printer Friendly Version





Two years from now, spam will be solved. (Bill Gates, 2004)




Linux posts

Troubleshooting posts


This post tagged:

FAQ

Networking

SCO_OSR5



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode