GETTY

Kenneth Galle kagalle at infoblvd.net
Mon Feb 11 10:04:52 EST 2002


That's how I understand it to be.
If I telnet in and check the jobs running (ps -axf), I see:

608 tty1     SW     0:00 [login]
872 tty1     S      0:01  \_ -bash
for a logged into console session (Alt-F1),

609 tty2     SW     0:00 [mingetty]
for a  not-logged into console session (Alt-F2),

8509 ?        S      0:00  \_ in.telnetd
8510 pts/0    S      0:00      \_ login -- ikenneg
8511 pts/0    S      0:00          \_ -bash
8523 pts/0    R      0:00              \_ ps -axf
and this for the telnet session.

mgetty is used when serial ports (and possibly modems) are involved, and
mingetty on the "tty" console terminals.

Ken

Robert Romito wrote:
> 
> So, if I understand correctly, if I only connect to my box through the actual console and telnet I won't need a getty.  The console I get from plugging directly into the box is not a virtual console and doesn't go through a serial port, and telnet doesn't use getty at all.
> 
> Am I understanding it correctly?
> 
> Robert Meyer wrote:
> 
> > Yep, you need some sort of getty on the serial port that the modem is on.  Too
> > many options to summarize here.  Neat stuff like 'if you want to do fax in, do
> > this' kinda stuff.  The virtual consoles also have getty processes running on
> > them.  That's what stuffs out the /etc/issue file, the login prompt and then
> > listens for the login ID.  It then passes the rest to the 'login' process.
> > Hope this helps...
> > Cheers!
> > Bob
> > --- Robert Romito <robromito at yahoo.com> wrote:
> >
> >> Hi All.
> >> Do I need to run a getty program, like mingetty or agetty, if I never
> >> dial-in to my linux box?  Does the console for the box require getty?  I
> >> usually just telnet into my boxes from my internal lan.
> >> I've found information on getty, but none of the sources said when you
> >> did or didn't need it.
> >> Thanks for the help.  Robert Romito.
> >>
> > =====
> > Bob Meyer
> > Knightwing Communications, Inc.
> > 36 Cayuga Blvd
> > Depew, NY 14043
> > Phone: 716-308-8931 or 716-681-0076
> > Meyer_RM at Yahoo.com
> > __________________________________________________
> > Do You Yahoo!?
> > Send FREE Valentine eCards with Yahoo! Greetings!
> > http://greetings.yahoo.com
> >


More information about the nflug mailing list