📄 node82.html
字号:
<!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" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/sag.css">
</HEAD>
<BODY LANG="EN" >
<A NAME="tex2html1329" HREF="node83.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node83.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="next_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/next_motif.gif"></A> <A NAME="tex2html1327" HREF="node80.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node80.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="up_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/up_motif.gif"></A> <A NAME="tex2html1321" HREF="node81.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node81.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/previous_motif.gif"></A> <A NAME="tex2html1331" HREF="node1.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/contents_motif.gif"></A> <A NAME="tex2html1332" HREF="node108.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node108.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="index_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME="tex2html1330" HREF="node83.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node83.html">/etc/passwd and other informative </A>
<B>Up:</B> <A NAME="tex2html1328" HREF="node80.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node80.html">Managing user accounts</A>
<B> Previous:</B> <A NAME="tex2html1322" HREF="node81.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node81.html">What's an account?</A>
<BR> <P>
<H1><A NAME="SECTION00920000000000000000">创建用户</A></H1>
<P>
Linux核心自己只不过视用户为数字。每个用户用一个单一的整数识别,<b>user id</b>或<b>uid</b>,
因为数字对计算机来说比文本名字处理更快更容易。核心之外的一个单独的数据库给每个user id安排了文本的名字,
即<b>用户名username</b>。这个数据库还包含一些其他信息。
<P>
要产生一个用户,需要给用户数据库增加关于用户的信息,并给他产生家目录。
培训用户、建立合适的初始化环境也是必要的。
<P>
多数Linux distributions有产生帐号的程序,而且有多个。
<tt>adduser</tt><A NAME="2476"> </A>和<tt>useradd</tt><A NAME="2478"> </A>是其中2个;
可能还有GUI的工具。
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="node86.html#subsecmanualadduser" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node86.html#subsecmanualadduser">8.2.4</A> describes how to do it by hand.
<P>
<BR> <HR>
<UL><A NAME="CHILD_LINKS"> </A>
<LI> <A NAME="tex2html1333" HREF="node83.html#SECTION00921000000000000000" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node83.html#SECTION00921000000000000000"><tt>/etc/passwd</tt>和其他信息文件</A>
<LI> <A NAME="tex2html1334" HREF="node84.html#SECTION00922000000000000000" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node84.html#SECTION00922000000000000000">Picking numeric user and group ids</A>
<LI> <A NAME="tex2html1335" HREF="node85.html#SECTION00923000000000000000" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node85.html#SECTION00923000000000000000">初始环境: <tt>/etc/skel</tt></A>
<LI> <A NAME="tex2html1336" HREF="node86.html#SECTION00924000000000000000" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node86.html#SECTION00924000000000000000">手工创建用户</A>
</UL>
<BR> <HR>
<P><ADDRESS>
<I>Lars Wirzenius <BR>
Sun Jun 29 13:31:22 EEST 1997</I>
</ADDRESS>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -