summaryrefslogtreecommitdiff
path: root/sag-0.6.1-www/Invisible/sag-0.6/node93.html
blob: 993e2c44d4e05042cc93a0288241dce76ac74098 (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
<!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="tex2html1486" HREF="node94.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="./next_motif.gif"></A> <A NAME="tex2html1484" HREF="node86.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="./up_motif.gif"></A> <A NAME="tex2html1478" HREF="node92.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="./previous_motif.gif"></A> <A NAME="tex2html1488" HREF="node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="./contents_motif.gif"></A> <A NAME="tex2html1489" HREF="node114.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="./index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME="tex2html1487" HREF="node94.html">Removing a user</A>
<B>Up:</B> <A NAME="tex2html1485" HREF="node86.html">Managing user accounts</A>
<B> Previous:</B> <A NAME="tex2html1479" HREF="node92.html">Creating a user by </A>
<BR> <P>
<H1><A NAME="SECTION001030000000000000000">Changing user properties</A></H1>
<P>
	There are a few commands for changing various
	properties of an account (i.e., the relevant field
	in <tt>/etc/passwd</tt><A NAME="2875">&#160;</A>):
	<BLOCKQUOTE> <DL ><DT><STRONG><tt>chfn</tt><A NAME="2877">&#160;</A></STRONG>
<DD> Change the full name field.
	<DT><STRONG><tt>chsh</tt><A NAME="2879">&#160;</A></STRONG>
<DD> Change the login shell.
	<DT><STRONG><tt>passwd</tt><A NAME="2881">&#160;</A></STRONG>
<DD> Change the password.
<P>
</DL></BLOCKQUOTE>
	The super-user may use these commands to change the
	properties of any account. Normal users can only change
	the properties of their own account. It may
	sometimes be necessary to disable these commands (with
	<tt>chmod</tt><A NAME="2883">&#160;</A>) for normal users, for example in an environment
	with many novice users.
<P>
	Other tasks need to be done by hand. For example, to
	change the username, you need to edit <tt>/etc/passwd</tt><A NAME="2885">&#160;</A>
	directly (with <tt>vipw</tt><A NAME="2887">&#160;</A>, remember). Likewise, to add
	or remove the user to more groups, you need to edit
	<tt>/etc/group</tt><A NAME="2889">&#160;</A> (with <tt>vigr</tt><A NAME="2891">&#160;</A>). Such tasks tend to
	be rare, however, and should be done with caution: for
	example, if
	you change the username, e-mail will no longer reach the
	user, unless you also create a mail alias.<A NAME="tex2html44" HREF="footnode.html#2790"><IMG  ALIGN=BOTTOM ALT="gif" SRC="./foot_motif.gif"></A>
<P>
<BR> <HR>
<P><ADDRESS>
<I>Lars Wirzenius <BR>
Sat Nov 15 02:32:11 EET 1997</I>
</ADDRESS>
</BODY>
</HTML>