📄 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">
</head>
<body LANG="EN">
<a NAME="tex2html1391" HREF="node88.html"><img WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" ALT="next" SRC="./next_motif.gif"></a> <a NAME="tex2html1389" HREF="node80.html"><img WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" ALT="up" SRC="./up_motif.gif"></a> <a NAME="tex2html1383" HREF="node86.html"><img WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" ALT="previous" SRC="./previous_motif.gif"></a> <a NAME="tex2html1393" HREF="node1.html"><img WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" ALT="contents" SRC="./contents_motif.gif"></a> <a NAME="tex2html1394" HREF="node108.html"><img WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" ALT="index" SRC="./index_motif.gif"></a> <br>
<b> Next:</b> <a NAME="tex2html1392" HREF="node88.html">Removing a user</a>
<b>Up:</b> <a NAME="tex2html1390" HREF="node80.html">Managing user accounts</a>
<b> Previous:</b> <a NAME="tex2html1384" HREF="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"><img ALIGN="BOTTOM" ALT="gif" SRC="./foot_motif.gif" WIDTH="15" HEIGHT="15"></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 + -