getty_ps
?This is just another version of getty
, which is a program that
handles some of the login process when you log in to a UNIX box. It
was written by Paul Sutcliffe, Jr. <paul@devon.lns.pa.us>
.
Kris Gleason <gleasokr@boulder.colorado.edu>
currently
maintains it. 2.0.7e is the latest version, and supercedes any older
versions. Most Linux distributions come with getty_ps
installed as the default getty
. Thus, I will mainly focus on
using the getty_ps
package in this document, but you are free
to use any getty
you like. You should check to make sure you do
indeed have getty_ps
as the default getty
.
At your Linux prompt, type:
linux# strings /sbin/getty | grep RINGBACK
If grep
returns ``RINGBACK
'' then you have the right
getty
. If you do not have this version of getty
, I highly
recommend that you get it. It can be found on the standard Linux FTP
sites. (Kris has promised me to implement a version feature in the
next release, to avoid doing this grep
sillyness.)
getty_ps
Get the latest version from a Linux FTP site.
By default, getty_ps
will be configured to be Linux FSSTND
(FileSystem STaNDard) compliant, which means
that it will put the binaries in /sbin
, and config files
in /etc/conf.{uu}getty.ttyS
N. It will also expect
lock files to go in /var/lock
.
Make sure you have the /var/lock
directory.
If you don't want FSSTND compliance, binaries will go
in /etc
, config files will go in
/etc/default/{uu}getty.ttyS
N, and lock file will go in
/usr/spool/uucp
. I recommend doing things this way if you
are using UUCP, because Taylor UUCP will have problems if you move
the lock files to where it isn't looking for them. You could always
link /usr/spool/uucp
to /var/lock
though, I
guess.
getty_ps
also uses syslogd
to log messages. See the man
pages for syslogd(1)
and syslog.conf(5)
for setting up
syslogd
, if you don't have it running already. Messages
are logged with priority LOG_AUTH, errors use LOG_ERR, and debugging
uses LOG_DEBUG. If you don't want to use syslogd
you
can edit tune.h
in the getty_ps
source files to use a log
file for messages instead, namely /var/adm/getty.log
by
default.
When you have decided if you want FSSTND, and syslog
, edit
tune.h
and the Makefile
in the getty_ps
source directory
to reflect you decisions. Now, install according to the instructions.
Once you have installed getty_ps
, and are certain it is working,
you can remove any other versions of getty
you have. Be sure to
check in /bin
, /etc
, /usr/bin
,
/usr/etc
, /usr/man/man1
, and /usr/man/cat1
for any thing called getty
- there are old versions lurking
everywhere. Also, you can safely remove the old config file
/etc/gettytab
- you only need /etc/gettydefs
. From
this point on, all
references to getty
will refer to getty_ps
. References to
uugetty
will refer to the uugetty
that comes with the
getty_ps
package.
Next Chapter, Previous Chapter
Table of contents of this chapter, General table of contents
Top of the document, Beginning of this Chapter