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 Desktop or Openserver.

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.

TCP/IP and NFS FAQ

How do I get /etc/issue to print for telnet sessions?

Modern releases use /etc/issue for telnet sessions


Hate these ads?

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.


Technorati tags:  

Comments /SCOFAQ/FAQ_scotec4telbanner.html


Add your comments

Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)

Or use any RSS reader

Delivered by FeedBurner


Views for this page
Today This Week This Month This Year  Overall
3770649 852

/SCOFAQ/FAQ_telbanner.html copyright 1997-2003 (various) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

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. We appreciate comments and article submissions.

Publishing your articles here

More:
       - FAQ




Unix/Linux Consultants


http://www.m3ipinc.com Security, firewalls, ids, audits, vulnerability assesments, BS7799, HIPAA, GLB, incident handling


http://www.cleverminds.net Need expert advice? Want a second opinion? CleverMinds is a one-stop-shop for a wide range of technology solutions. We support Unix, Linux, SCO as well as CMS, ecom, blogs, podcasts, search engines consulting and more. Contact us at web2.0@cleverminds.net 0r (617) 894-1282


SCO, OpenServer, UnixWare, software, servers, security, networks, installation, administration, troubleshooting, maintenance, Watchguard, firewalls, VPNs, e-mail. Visit us at http://opensystemscomputing.com and www.go2unix.com.


Twitter
  • May 11 13:53
    Happy Mother's day
  • May 10 06:39
    Gym log this week: 4 days, 179.5 lbs, rowing 40 minutes, walking 40, dips 60, pullups 97, crunches 160, pushups 60, squats/lunges 200









Change Congress

Related Posts