OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / shadow / draft / man8 / usermod.8
1 .\"$Id: usermod.8,v 1.12 2002/03/08 04:39:12 kloczek Exp $
2 .\" Copyright 1991 - 1994, Julianne Frances Haugh
3 .\" All rights reserved.
4 .\"
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
7 .\" are met:
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\"    notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\"    notice, this list of conditions and the following disclaimer in the
12 .\"    documentation and/or other materials provided with the distribution.
13 .\" 3. Neither the name of Julianne F. Haugh nor the names of its contributors
14 .\"    may be used to endorse or promote products derived from this software
15 .\"    without specific prior written permission.
16 .\"
17 .\" THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
18 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 .\" ARE DISCLAIMED.  IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
21 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 .\" SUCH DAMAGE.
28 .\"
29 .\" Japanese Version Copyright (c) 1997 Kazuyoshi Furutaka
30 .\"         all rights reserved.
31 .\" Translated Fri Feb 14 23:06:00 JST 1997
32 .\"         by Kazuyoshi Furutaka <furutaka@Flux.tokai.jaeri.go.jp>
33 .\" Updated Tue Jan 23 17:21:08 JST 2001
34 .\"         by Kentaro Shirakata <argrath@ub32.org>
35 .\" Modified Sun 22 Sep 2002 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
36 .\"
37 .\"WORD:        initial group           ¼ç¥°¥ë¡¼¥×
38 .\"WORD:        supplementary group     Êä½õ¥°¥ë¡¼¥×
39 .\"
40 .TH USERMOD 8
41 .\"O .SH NAME
42 .SH Ì¾Á°
43 .\"O usermod \- Modify a user account
44 usermod \- ¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È¤ò½¤Àµ¤¹¤ë
45 .\"O .SH SYNOPSIS
46 .SH ½ñ¼°
47 .\"O .TP 8
48 \fBusermod\fR [\fB-c\fR \fIcomment\fR] [\fB-d\fR \fIhome_dir\fR [\fB-m\fR]]
49 .br
50 [\fB-e\fR \fIexpire_date\fR] [\fB-f\fR \fIinactive_time\fR]
51 .br
52 [\fB-g\fR \fIinitial_group\fR] [\fB-G\fR \fIgroup\fR [,...]]
53 .br
54 [\fB-l\fR \fIlogin_name\fR] [\fB-p\fR \fIpasswd\fR]
55 .br
56 [\fB-s\fR \fIshell\fR] [\fB-u\fR \fIuid\fR [\fB-o\fR]] [\fB-L\fR|\fB-U\fR]
57 \fIlogin\fR
58 .\"O .SH DESCRIPTION
59 .SH ÀâÌÀ
60 .\"O The \fBusermod\fR command modifies the system account files to reflect
61 .\"O the changes that are specified on the command line.
62 .\"O The options which apply to the \fBusermod\fR command are:
63 \fBusermod\fR ¥³¥Þ¥ó¥É¤Ï¡¢
64 ¥³¥Þ¥ó¥É¥é¥¤¥ó¾å¤Ç¤Î»ØÄê¤Ë¤è¤Ã¤Æ¡¢
65 ¥·¥¹¥Æ¥à¥¢¥«¥¦¥ó¥È¥Õ¥¡¥¤¥ë¤ò½¤Àµ¤¹¤ë¡£
66 \fBusermod\fR ¥³¥Þ¥ó¥É¤Ë»ØÄê¤Ç¤­¤ë¥ª¥×¥·¥ç¥ó¤Ï¼¡¤ÎÄ̤ꡣ
67 .IP "\fB-c \fIcomment\fR"
68 .\"O The new value of the user's password file comment field.
69 .\"O It is normally modified using the \fBchfn\fR(1) utility.
70 ¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ë¤Î¥³¥á¥ó¥È¥Õ¥£¡¼¥ë¥É¤ËÍ¿¤¨¤ë¿·¤·¤¤ÃÍ¡£
71 Ä̾ï¤Ï
72 .BR chfn (1)
73 ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ë¤è¤Ã¤ÆÊѹ¹¤µ¤ì¤ë¡£
74 .IP "\fB-d \fIhome_dir\fR"
75 .\"O The user's new login directory.
76 .\"O If the \fB-m\fR option is given the contents of the current home directory
77 .\"O will be moved to the new home directory, which is created if it does not
78 .\"O already exist.
79 ¿·¤·¤¤¥í¥°¥¤¥ó¥Ç¥£¥ì¥¯¥È¥ê¡£
80 \fB-m\fR ¥ª¥×¥·¥ç¥ó¤òÍѤ¤¤ë¤È¡¢
81 ¸½ºß¤Î¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤ÎÃæ¿È¤¬¿·¤·¤¤¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤Ë°ÜÆ°¤µ¤ì¤ë
82 (¸å¼Ô¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¤Ï¿·¤¿¤ËºîÀ®¤µ¤ì¤ë)¡£
83 .IP "\fB-e \fIexpire_date\fR"
84 .\"O The date on which the user account will be disabled.
85 .\"O The date is specified in the format \fIYYYY-MM-DD\fR.
86 ¤½¤Î¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È¤¬»ÈÍÑÉÔǽ¤Ë¤Ê¤ëÆüÉÕ¡£
87 ÆüÉդϠ\fIYYYY-MM-DD\fR ¤È¤¤¤¦½ñ¼°¤Ç»ØÄꤹ¤ë¡£
88 .IP "\fB-f \fIinactive_days\fR"
89 .\"O The number of days after a password expires until the account
90 .\"O is permanently disabled.
91 .\"O A value of 0 disables the account as soon as the password has
92 .\"O expired, and a value of -1 disables the feature.
93 .\"O The default value is -1.
94 ¥Ñ¥¹¥ï¡¼¥É¤Î»ÈÍÑ´ü¸Â¤¬ÀÚ¤ì¤Æ¤«¤é¥¢¥«¥¦¥ó¥È¤¬±Êµ×¤Ë»ÈÍÑÉÔǽ¤Ë¤Ê¤ë¤Þ¤Ç¤ÎÆü¿ô¡£
95 0 ¤Ë¤¹¤ë¤È¡¢
96 ¥Ñ¥¹¥ï¡¼¥É¤Î´ü¸Â¤¬ÀÚ¤ì¤ë¤ÈƱ»þ¤Ë¤³¤Î¥¢¥«¥¦¥ó¥È¤Ï»ÈÍÑÉÔǽ¤Ë¤Ê¤ë¡£
97 -1 ¤Ë¤¹¤ë¤È¤³¤Îµ¡Ç½¤¬Ìµ¸ú¤Ë¤Ê¤ë¡£¥Ç¥Õ¥©¥ë¥ÈÃͤϠ-1¡£
98 .IP "\fB-g \fIinitial_group\fR"
99 .\"O The group name or number of the user's new initial login group.
100 .\"O The group name must exist.  A group number must refer to an
101 .\"O already existing group.
102 .\"O The default group number is 1.
103
104 ¿·¤¿¤Ë¤½¤Î¥æ¡¼¥¶¤Î¥í¥°¥¤¥ó»þ½é´ü¥°¥ë¡¼¥×¤È¤¹¤ë¥°¥ë¡¼¥×̾¤Þ¤¿¤Ï ID¡£
105 ¥°¥ë¡¼¥×̾¤Ï´û¤Ë¸ºß¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
106 ¥°¥ë¡¼¥×ÈÖ¹æ¤Ï´û¸¤Î¥°¥ë¡¼¥×¤ò»²¾È¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
107 ¥Ç¥Õ¥©¥ë¥È¤Î¥°¥ë¡¼¥×ÈÖ¹æ¤Ï 1¡£
108 .IP "\fB-G \fIgroup,[...]\fR"
109 .\"O A list of supplementary groups which the user is also a member
110 .\"O of.
111 .\"O Each group is separated from the next by a comma, with no
112 .\"O intervening whitespace.
113 .\"O The groups are subject to the same restrictions as the group
114 .\"O given with the \fB-g\fR option.
115 .\"O If the user is currently a member of a group which is not listed,
116 .\"O the user will be removed from the group
117 ¥æ¡¼¥¶¤¬Â°¤¹¤ëÊä½õ¥°¥ë¡¼¥× (supplementary groups) ¤Î¥ê¥¹¥È¡£
118 ¥°¥ë¡¼¥×¤Ï¥³¥ó¥Þ¤Ç¶èÀڤꡢ´Ö¤Ë¶õÇòʸ»ú¤òÆþ¤ì¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
119 »ØÄê¤Ç¤­¤ë¥°¥ë¡¼¥×¤Ë¤Ï \fB-g\fR ¥ª¥×¥·¥ç¥ó¤ÈƱÍͤÎÀ©¸Â¤¬¤¢¤ë¡£
120 ¸½ºß¤½¤Î¥æ¡¼¥¶¤¬¡¢
121 ¿·¤·¤¤¥ê¥¹¥È¤Ë¤Ê¤¤¥°¥ë¡¼¥×¤Î¥á¥ó¥Ð¡¼¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢
122 ¤½¤Î¥°¥ë¡¼¥×¤«¤éºï½ü¤µ¤ì¤ë¡£
123 .IP "\fB-l \fIlogin_name\fR"
124 .\"O The name of the user will be changed from \fIlogin\fR to
125 .\"O \fIlogin_name\fR.
126 .\"O Nothing else is changed.
127 .\"O In particular, the user's home directory name should probably
128 .\"O be changed to reflect the new login name.
129 ¥æ¡¼¥¶¤Î¥í¥°¥¤¥ó̾¤ò \fIlogin\fR ¤«¤é \fIlogin_name\fR ¤ËÊѹ¹¤¹¤ë¡£
130 ¾¤Ï²¿¤âÊѹ¹¤·¤Ê¤¤¤Î¤Ç¡¢
131 ¤ª¤½¤é¤¯¿·¤·¤¤¥í¥°¥¤¥ó̾¤Ë¹ç¤ï¤»¤Æ
132 ¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤Î̾Á°¤òÊѹ¹¤¹¤ëɬÍפ¬¤¢¤ë¤À¤í¤¦¡£
133 .IP "\fB-p \fIpasswd\fR"                                                
134 .\"O The encrypted password, as returned by \fBcrypt\fR(3).
135 .\"O nakano remoed tailing long spaces
136 \fBcrypt\fR(3) ¤ÎÊÖ¤êÃͤǤ¢¤ë°Å¹æ²½¥Ñ¥¹¥ï¡¼¥É¡£
137 .IP "\fB-s \fIshell\fR"
138 .\"O The name of the user's new login shell.
139 .\"O Setting this field to blank causes the system
140 .\"O to select the default login shell.
141 ¥æ¡¼¥¶¤Î¿·¤·¤¤¥í¥°¥¤¥ó¥·¥§¥ë¤Î̾Á°¡£
142 ¤³¤Î¥Õ¥£¡¼¥ë¥É¤ò¶õÇò¤Ë¤·¤¿¾ì¹ç¤Ï¡¢
143 ¥·¥¹¥Æ¥à¤¬¥Ç¥Õ¥©¥ë¥È¤Î¥í¥°¥¤¥ó¥·¥§¥ë¤òÁªÂò¤¹¤ë¡£
144 .IP "\fB-u \fIuid\fR"
145 .\"O The numerical value of the user's ID.
146 .\"O This value must be unique, unless the \fI-o\fR option is used.
147 .\"O The value must be non-negative.
148 .\"O Values between 0 and 99 are typically reserved for system accounts.
149 .\"O Any files which the user owns and which are located in the directory
150 .\"O tree rooted at the user's home directory will have the file user ID
151 .\"O changed automatically.
152 .\"O Files outside of the user's home directory must be altered manually.
153 ¥æ¡¼¥¶¤Î ID Èֹ档
154 ¤³¤ÎÃͤϡ¢\fB-o\fR ¥ª¥×¥·¥ç¥ó¤òÍѤ¤¤ë¾ì¹ç¤ò½ü¤­¡¢Â¾¤È½ÅÊ£¤·¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
155 ¤Þ¤¿ÈóÉéÃͤǤʤ¯¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
156 0 ¤«¤é 99 ¤Þ¤Ç¤ÎÃͤϡ¢Ä̾亮¥¹¥Æ¥à¥¢¥«¥¦¥ó¥ÈÍѤËͽÌ󤵤ì¤Æ¤¤¤ë¡£
157 ¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê°Ê²¼¤Î¡¢
158 ¤½¤Î¥æ¡¼¥¶½êÍ­¤Î¤¹¤Ù¤Æ¤Î¥Õ¥¡¥¤¥ë¤Î¥æ¡¼¥¶ ID ¤Ï¡¢
159 ¼«Æ°Åª¤Ë¿·¤·¤¤ÃͤËÊѹ¹¤µ¤ì¤ë¡£
160 ¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê°Ê²¼¤Ë¤Ê¤¤¥Õ¥¡¥¤¥ë¤Ï¼êºî¶È¤ÇÊѹ¹¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
161 .IP "\fB-L\fR"
162 .\"O Lock a user's password.
163 .\"O This puts a '!' in front of the encrypted password, effectively disabling
164 .\"O the password.  You can't use this option with \fI-p\fR or \fI-U\fR.
165 ¥æ¡¼¥¶¤Î¥Ñ¥¹¥ï¡¼¥É¤ò¥í¥Ã¥¯¤¹¤ë¡£
166 ¤³¤ì¤Ï°Å¹æ²½¤µ¤ì¤¿¥Ñ¥¹¥ï¡¼¥É¤ÎÁ°¤Ë '!' ¤òÄɲä·¡¢
167 ¼Â¼ÁŪ¤Ë¥Ñ¥¹¥ï¡¼¥É¤ò̵¸ú¤Ë¤¹¤ë¡£
168 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò \fI-p\fR ¤ä \fI-U\fR ¤ÈƱ»þ¤ËÍѤ¤¤ë¤³¤È¤Ï¤Ç¤­¤Ê¤¤¡£
169 .IP "\fB-U\fR"
170 .\"O Unlock a user's password.
171 .\"O This removes the '!' in front of the encrypted password.
172 .\"O You can't use this option with \fI-p\fR or \fI-L\fR.
173 ¥æ¡¼¥¶¤Î¥Ñ¥¹¥ï¡¼¥É¤ò¥¢¥ó¥í¥Ã¥¯¤¹¤ë¡£
174 ¤³¤ì¤Ï°Å¹æ²½¤µ¤ì¤¿¥Ñ¥¹¥ï¡¼¥É¤ÎÀèƬ¤Î '!' ¤ò¼è¤ê½ü¤¯¡£
175 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò \fI-p\fR ¤ä \fI-L\fR ¤ÈƱ»þ¤ËÍѤ¤¤ë¤³¤È¤Ï¤Ç¤­¤Ê¤¤¡£
176 .\"O .SH CAVEATS
177 .SH ·Ù¹ð
178 .\"O \fBusermod\fR will not allow you to change the name of a user who is
179 .\"O logged in.
180 .\"O You must make certain that the named user is not executing any processes
181 .\"O when this command is being executed if the user's numerical user ID is
182 .\"O being changed.
183 .\"O You must change the owner of any crontab files manually.
184 .\"O You must change the owner of any at jobs manually.
185 .\"O You must make any changes involving NIS on the NIS server.
186 \fBusermod\fR
187 ¤Ï¸½ºß¥í¥°¥¤¥ó¤·¤Æ¤¤¤ë¥æ¡¼¥¶¤Î̾Á°¤òÊѹ¹¤Ç¤­¤Ê¤¤¡£
188 ¤³¤Î¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤Æ¥æ¡¼¥¶¤Î ID ÈÖ¹æ¤òÊѹ¹¤¹¤ëºÝ¤Ë¤Ï¡¢
189 »ØÄꤷ¤¿¥æ¡¼¥¶¤Î¥×¥í¥»¥¹¤¬°ì¤Ä¤â¼Â¹Ô¤µ¤ì¤Æ¤¤¤Ê¤¤¤³¤È¤ò
190 »öÁ°¤Ë³Îǧ¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
191 crontab ¥Õ¥¡¥¤¥ë¤Î½êÍ­¼Ô¤Ï¼êºî¶È¤ÇÊѹ¹¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
192 at ¥¸¥ç¥Ö¤Î½êÍ­¼Ô¤Ï¼êºî¶È¤ÇÊѹ¹¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
193 NIS ¤Ë´Ø¤¹¤ëºî¶È¤Ï NIS ¥µ¡¼¥Ð¾å¤Ç¹Ô¤Ê¤ï¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
194 .\"O .SH FILES
195 .SH ¥Õ¥¡¥¤¥ë
196 .\"O /etc/passwd \- user account information
197 /etc/passwd \- ¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È¾ðÊó
198 .br
199 .\"O /etc/shadow \- secure user account information
200 /etc/shadow \- °ÂÁ´¤Ê¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È¾ðÊó
201 .br
202 .\"O /etc/group \- group information
203 /etc/group \- ¥°¥ë¡¼¥×¾ðÊó
204 .\"O .SH SEE ALSO
205 .SH ´ØÏ¢¹àÌÜ
206 .BR chfn (1),
207 .BR chsh (1),
208 .BR passwd (1),
209 .BR crypt (3),
210 .BR groupadd (8),
211 .BR groupdel (8),
212 .BR groupmod (8),
213 .BR useradd (8),
214 .BR userdel (8)
215 .\"O .SH AUTHOR
216 .SH Ãø¼Ô
217 Julianne Frances Haugh (jockgrrl@ix.netcom.com)