[unix-pc.general] Altering Logon Prompt

blodtoad@pitt.UUCP (M. Anthony Kapolka 3) (04/11/88)

In regards to the Unix PC, I'd like to change the message:

	"Welcome to the AT&T UNIX pc"

which precedes the logon prompt.

Some machines use /etc/issue and read that in as a pre-login message.
The logon I have is not so handy.  Is the source or a modified binary
readily available?  Did I just miss something in the manuals?

I am using vers 3.0.

Thanks.

M. Anthony Kapolka III

kapolka@vax.cs.pittsburgh.edu
...{allegra, cadre}!pitt!kapolka
anthony@pittvms.Bitnet

jr@amanue.UUCP (Jim Rosenberg) (04/11/88)

In article <3238@pitt.UUCP> blodtoad@vax.cs.pittsburgh.edu.UUCP (M. Anthony Kapolka III) writes:
>In regards to the Unix PC, I'd like to change the message:
>
>	"Welcome to the AT&T UNIX pc"
>
>which precedes the logon prompt.

Check /etc/gettydefs.  There is a field in there for the login message.  The
pain here is that you have to change it for *each entry*.
-- 
 Jim Rosenberg
     CIS: 71515,124                         decvax!idis! \
     WELL: jer                                   allegra! ---- pitt!amanue!jr
     BIX: jrosenberg                  uunet!cmcl2!cadre! /

tien@speedy.cs.wisc.edu (PB Schechter) (04/14/88)

In article <3238@pitt.UUCP> blodtoad@vax.cs.pittsburgh.edu.UUCP (M. Anthony Kapolka III) writes:
>In regards to the Unix PC, I'd like to change the message:
>
>	"Welcome to the AT&T UNIX pc"
>
>which precedes the logon prompt.

I'm not sure about 3.0, but on 3.51 you can edit the file /etc/gettydefs
and change the prompt to whatever you want.

PB Schechter
pb@cs.wisc.edu

thad@cup.portal.com (04/14/88)

Just checking my system's log notes, the file I altered to produce a new
login prompt "Welcome to THADLABS!" is /etc/gettydefs; and I restored
the /etc/motd file to its original state.

I'm learning UNIX by bits and pieces, and I hope this helps you, too.

I keep a notebook full of all the notes and trivia I discover about the
system.  Fascinating!

Just think: 7 months ago I thought UNIX was a piece of sh*t 'til I bouught
my own and now I've become a UNIX proselytizer!

I've converted over 17% of my company to UNIX (e.g. the people have all
bought their own UNIX PCs and I know have one of my products in the AT&T
UNIX Catalog and in the /usr/group's 1988 UNIX Products Directory!  (that
product is on the 3B2; am still awaiting some "special" software before I
port the the product to the 3B1 (should just be a matter of days now).

Having been in this "racket" for several decades, I clearly see the value
of UNIX; just wish I could have "converted" earlier.  I have Doug Merritt
to thank for my recent conversion (he's on the software review board of
UNIX REVIEW and also a frequent caller to several of my Amiga BBS systems).

kevin@kosman.UUCP (Kevin O'Gorman) (04/15/88)

In article <3238@pitt.UUCP> blodtoad@vax.cs.pittsburgh.edu.UUCP (M. Anthony Kapolka III) writes:
 >In regards to the Unix PC, I'd like to change the message:
 >
 >	"Welcome to the AT&T UNIX pc"
 >
 >which precedes the logon prompt.
 >
 >Some machines use /etc/issue and read that in as a pre-login message.
 >The logon I have is not so handy.  Is the source or a modified binary
 >readily available?  Did I just miss something in the manuals?

Fortunately, yes, you missed something.  You can find the text of the message
in /etc/gettydefs.  You may be annoyed to find how many copies of it you
might need to change, just because of the strucure of that file, but that's
the place.

install@kosman.UUCP (Kevin O'Gorman) (04/15/88)

In article <8928@e.ms.uky.edu> eric@ms.uky.edu (Eric Herrin) writes:
>
>A strings(8) on /etc/getty also shows /etc/issue is checked.  I tried it
>and it worked fine.  Maybe changing the gettydefs file to have only
>the 'login:' message, then put any other messages in /etc/issue would 
>be the easiest thing to do.  Esp. if the messages are lengthy.

You know, I have been trying this for a long time, because there's a
length limit on what you can put in gettydefs.  It looks fine on the console,
but dialups don't see it.  Anyone know why?

What I put in there is a nasty message inspired by a court decision that
if you have a login prompt that says "Welcome to ...." you cannot later sue
anyone who logs in and does malicious damage.  My message announces that
this is a private system, and you need authorization...  However, no-one
sees it but me.  All I can do is modify the "Welcome" part of gettydefs.