Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!yoyo.aarnet.edu.au!ntx.City.UniSA.edu.au!CUTL.City.UniSA.edu.au!deraad From: deraad@CUTL.City.UniSA.edu.au (Mark de Raad) Newsgroups: comp.os.386bsd.questions Subject: Re: Custom login banner for FreeBSD Date: 21 Jun 1994 01:00:17 GMT Organization: University of South Australia Lines: 41 Message-ID: <2u5e31$2v1@ntx.City.UniSA.edu.au> References: <2tn4quINNlbr@scarecrow.mke.ab.com> NNTP-Posting-Host: cutl.city.unisa.edu.au X-Newsreader: TIN [version 1.2 PL2] Thad Phetteplace x4461 (tdphette@mke.ab.com) wrote: @:>I would like my system to print out a verbose message before the login: @:>prompt is displayed. Will I need to hack on the source code, or is @:>there some simple file similar to motd that I can edit? Another way to handle this (dont ask about the security implications, although I cant see any ones really)... is to run a shell script instead of telnetd, and launch telnetd at the end of the script... if you get my meaning For example: (I assume FreeBSD, but whatever), move /usr/libexec/telnetd to something like /usr/libexec/telnetd_launch In /usr/libexec edit a shell script called telnetd, containing the lines: --- #! /bin/sh echo Your message echo For as many lines as you like (dont go over 24 however, many echo terms cant handle it echo "" #Launch the telnetd program for login prompt etc /usr/libexec/telnetd_launch --- If you have any questions, send me some mail! (check out the login banner at cutl.city.unisa.edu.au if you like, gettytab CAN do quite large banners... (mines with gettytab..) Cheers. M -- Mark W. de Raad Centre for University Teaching and Learning University of South Australia Australia Telephone: +61 8 302 2063 'Never abuse or curse something as precious and fragile as your existence'