54 lines
2.4 KiB
HTML
54 lines
2.4 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
|
|
<TITLE>From Power Up To Bash Prompt: Getty and Login</TITLE>
|
|
<LINK HREF="From-PowerUp-To-Bash-Prompt-HOWTO-11.html" REL=next>
|
|
<LINK HREF="From-PowerUp-To-Bash-Prompt-HOWTO-9.html" REL=previous>
|
|
<LINK HREF="From-PowerUp-To-Bash-Prompt-HOWTO.html#toc10" REL=contents>
|
|
</HEAD>
|
|
<BODY>
|
|
<A HREF="From-PowerUp-To-Bash-Prompt-HOWTO-11.html">Next</A>
|
|
<A HREF="From-PowerUp-To-Bash-Prompt-HOWTO-9.html">Previous</A>
|
|
<A HREF="From-PowerUp-To-Bash-Prompt-HOWTO.html#toc10">Contents</A>
|
|
<HR>
|
|
<H2><A NAME="s10">10. Getty and Login</A></H2>
|
|
|
|
<P>Getty is the program that enables you to log in through a serial device such as a virtual terminal, a text terminal, or a modem. It displays the login prompt. Once you enter your username, getty hands this over to <CODE>login</CODE> which asks for a password, checks it out and gives you a shell.
|
|
<P>
|
|
<P>
|
|
<P>There are many getty's available. Some distributions, including Red Hat use
|
|
a very small one called <CODE>mingetty</CODE> that only works with virtual terminals.
|
|
<P>
|
|
<P>The <CODE>login</CODE> program is part of the util-linux package, which also
|
|
contains a getty called <CODE>agetty</CODE>, which works fine. This package also
|
|
contains <CODE>mkswap</CODE>, <CODE>fdisk</CODE>,
|
|
<CODE>passwd</CODE>, <CODE>kill</CODE>, <CODE>setterm</CODE>, <CODE>mount</CODE>,
|
|
<CODE>swapon</CODE>, <CODE>rdev</CODE>, <CODE>renice</CODE>,
|
|
<CODE>more</CODE> (the program) and more (ie more programs).
|
|
<P>
|
|
<H2><A NAME="ss10.1">10.1 Configuration</A>
|
|
</H2>
|
|
|
|
<P>The message that comes on the top of your screen with your login prompt comes
|
|
from <CODE>/etc/issue</CODE>. Gettys are usually started in <CODE>/etc/inittab</CODE>.
|
|
Login checks user details in <CODE>/etc/passwd</CODE>, and if you have password
|
|
shadowing, <CODE>/etc/shadow</CODE>.
|
|
<P>
|
|
<H2><A NAME="ss10.2">10.2 Exercises</A>
|
|
</H2>
|
|
|
|
<P>Create a <CODE>/etc/passwd</CODE> by hand. Passwords can be set to null, and
|
|
changed with the program <CODE>passwd</CODE> once you log on. See the man page for
|
|
this file Use <CODE>man 5 passwd</CODE> to get the man page for the file rather
|
|
than the man page for the program.
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<HR>
|
|
<A HREF="From-PowerUp-To-Bash-Prompt-HOWTO-11.html">Next</A>
|
|
<A HREF="From-PowerUp-To-Bash-Prompt-HOWTO-9.html">Previous</A>
|
|
<A HREF="From-PowerUp-To-Bash-Prompt-HOWTO.html#toc10">Contents</A>
|
|
</BODY>
|
|
</HTML>
|