📄 node87.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>Changing user properties</TITLE>
<META NAME="description" CONTENT="Changing user properties">
<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="tex2html1391" HREF="node88.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node88.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="tex2html1389" 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="tex2html1383" HREF="node86.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node86.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="tex2html1393" 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="tex2html1394" 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="tex2html1392" HREF="node88.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node88.html">Removing a user</A>
<B>Up:</B> <A NAME="tex2html1390" HREF="node80.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node80.html">Managing user accounts</A>
<B> Previous:</B> <A NAME="tex2html1384" HREF="node86.html" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/node86.html">Creating a user by </A>
<BR> <P>
<H1><A NAME="SECTION00930000000000000000">改变用户属性</A></H1>
<P>
有几个改变帐户不同属性的命令(即<tt>/etc/passwd</tt><A NAME="2526"> </A>中的相关域):
<BLOCKQUOTE> <DL ><DT><STRONG><tt>chfn</tt><A NAME="2528"> </A></STRONG>
<DD>改变全名域。
<DT><STRONG><tt>chsh</tt><A NAME="2530"> </A></STRONG>
<DD>改变登录shell。
<DT><STRONG><tt>passwd</tt><A NAME="2532"> </A></STRONG>
<DD>改变口令。
<P>
</DL></BLOCKQUOTE>
超级用户可以用这些口令改变任何帐户的属性。普通用户只能改变自己帐户的属性。
有时可能有必要使这些命令对普通用户不可用(用<tt>chmod</tt><A NAME="2534"> </A>),
例如在一个有许多新手的环境中。
<P>
其他任务需要手工完成。例如改变用户名,需要编辑<tt>/etc/passwd</tt><A NAME="2536"> </A>
(记住:用<tt>vipw</tt><A NAME="2538"> </A>)。
同样,要增加或删除用户to more groups,需要编辑<tt>/etc/group</tt><A NAME="2540"> </A>
(用<tt>vigr</tt><A NAME="2542"> </A>)。
这种任务较少,需要小心从事:例如,改变了用户名,电子邮件就不能到达这个用户,除非你同时产生一个
邮件别名。
<A NAME="tex2html36" HREF="footnode.html#2450" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/footnode.html#2450"><IMG ALIGN=BOTTOM ALT="gif" SRC="foot_motif.gif" tppabs="http://linux.ccpi.gov.cn/Linux/linuxadmin/foot_motif.gif"></A>
<P>
<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 + -