blob: fe6ec2d034c39cefb81c8ebb51b4c535877b22d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<!--Converted with LaTeX2HTML 96.1-h (September 30, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds -->
<HTML>
<HEAD>
<TITLE>Creating a user</TITLE>
<META NAME="description" CONTENT="Creating a user">
<META NAME="keywords" CONTENT="sag">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<LINK REL=STYLESHEET HREF="sag.css">
</HEAD>
<BODY LANG="EN" >
<A NAME="tex2html1424" HREF="node89.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="./next_motif.gif"></A> <A NAME="tex2html1422" HREF="node86.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="./up_motif.gif"></A> <A NAME="tex2html1416" HREF="node87.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="./previous_motif.gif"></A> <A NAME="tex2html1426" HREF="node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="./contents_motif.gif"></A> <A NAME="tex2html1427" HREF="node114.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="./index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME="tex2html1425" HREF="node89.html">/etc/passwd and other informative </A>
<B>Up:</B> <A NAME="tex2html1423" HREF="node86.html">Managing user accounts</A>
<B> Previous:</B> <A NAME="tex2html1417" HREF="node87.html">What's an account?</A>
<BR> <P>
<H1><A NAME="SECTION001020000000000000000">Creating a user</A></H1>
<P>
The Linux kernel itself treats users are mere numbers.
Each user is identified by a unique integer, the
<b>user id</b> or <b>uid</b>, because numbers are
faster and easier for a computer to process than textual
names. A separate database outside the kernel assigns
a textual name, the <b>username</b>, to each user id.
The database contains additional information as well.
<P>
To create a user, you need to add information about the
user to the user database, and create a home directory
for him. It may also be necessary to educate the user,
and set up a suitable initial environment for him.
<P>
Most Linux distributions come with a program for creating
accounts. There are several such programs available.
Two command line alternatives are <tt>adduser</tt><A NAME="2824"> </A> and
<tt>useradd</tt><A NAME="2826"> </A>; there may be a GUI tool as well. Whatever
the program, the result is that there is little if any
manual work to be done. Even if the details are many and
intricate, these programs make everything seem trivial.
However, section <A HREF="node92.html#subsecmanualadduser">9.2.4</A> describes how
to do it by hand.
<P>
<BR> <HR>
<UL><A NAME="CHILD_LINKS"> </A>
<LI> <A NAME="tex2html1428" HREF="node89.html#SECTION001021000000000000000"><tt>/etc/passwd</tt> and other informative files</A>
<LI> <A NAME="tex2html1429" HREF="node90.html#SECTION001022000000000000000">Picking numeric user and group ids</A>
<LI> <A NAME="tex2html1430" HREF="node91.html#SECTION001023000000000000000">Initial environment: <tt>/etc/skel</tt></A>
<LI> <A NAME="tex2html1431" HREF="node92.html#SECTION001024000000000000000">Creating a user by hand</A>
</UL>
<BR> <HR>
<P><ADDRESS>
<I>Lars Wirzenius <BR>
Sat Nov 15 02:32:11 EET 1997</I>
</ADDRESS>
</BODY>
</HTML>
|