1 .\" Copyright 1992 Rickard E. Faith (faith@cs.unc.edu)
2 .\" May be distributed under the GNU General Public License
5 .\" Japanese Version Copyright (c) 2001 Maki KURODA
6 .\" all rights reserved.
7 .\" Translated Fri Feb 23 14:29:12 JST 2001
8 .\" by Maki KURODA <mkuroda@mail.tsagrp.co.jp>
11 .TH PASSWD 1 "11 November 1996" "Util-linux 2.6" "Linux Programmer's Manual"
14 .\"O passwd \- change password
15 passwd \- ¥Ñ¥¹¥ï¡¼¥É¤òÊѹ¹¤¹¤ë
21 .\"O .RI [ " name " [ " password " ]]
23 .\"O .BR "passwd \-f "
24 .\"O .RI [ " arguments to chfn " ]
26 .\"O .BR "passwd \-s "
27 .\"O .RI [ " arguments to chsh " ]
34 .RI [ " name " [ " password " ]]
37 .RI [ " arguments to chfn " ]
40 .RI [ " arguments to chsh " ]
43 .\"O Without arguments
45 .\"O will change the password for the current user. First the user is asked for
46 .\"O the old password, then prompted twice for the new password in order to
47 .\"O catch typing errors.
51 ¸½ºß¤Î¥æ¡¼¥¶¤Î¥Ñ¥¹¥ï¡¼¥É¤òÊѹ¹¤¹¤ë¡£
52 ºÇ½é¤Ë¥æ¡¼¥¶¤Ï¸Å¤¤¥Ñ¥¹¥ï¡¼¥É¤ò¿Ò¤Í¤é¤ì¤ë¡¢¤½¤Î¸å
53 ¿·¤·¤¤¥Ñ¥¹¥ï¡¼¥É¤òÆó²ó¿Ò¤Í¤é¤ì¤ë¡£¤³¤ì¤ÏÆþÎϤÎ
54 ´Ö°ã¤¤¤ò¸«¤Ä¤±¤ë¤¿¤á¤Ç¤¢¤ë¡£
56 .\"O The one and two argument forms may only be used by the superuser. Using the
57 .\"O one argument form, the superuser may change the password for that
59 °ì¤Ä¤Þ¤¿¤ÏÆó¤Ä¤Î°ú¿ô·Á¼°¤Ï¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤Ë¤À¤±»ÈÍѤ¹¤ë¤³¤È¤¬½ÐÍè¤ë¡£
60 °ì¤Ä¤Î·Á¼°¤ò»ÈÍѤ·¤¿¾ì¹ç¡¢¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤Ï
62 ¤Î¥Ñ¥¹¥ï¡¼¥É¤òÊѹ¹¤¹¤ë¤³¤È¤¬½ÐÍè¤ë¡£
63 .\"O The superuser is not asked for the users old password, but the rules
64 .\"O for proper passwords are also applied unless the
66 .\"O option is used. The superuser may have legitimate
67 .\"O reasons to choose a non-conformant password.
69 ¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤Ï¥æ¡¼¥¶¤Î¸Å¤¤¥Ñ¥¹¥ï¡¼¥É¤ò¿Ò¤Í¤é¤ì¤Ê¤¤¡¤¤·¤«¤·
70 ŬÀڤʥѥ¹¥ï¡¼¥É¤ËÂФ¹¤ëµ¬Â§¤Ï
72 ¥ª¥×¥·¥ç¥ó¤¬»ÈÍѤµ¤ì¤Ê¤¤¸Â¤êŬÍѤµ¤ì¤ë¤À¤í¤¦¡£
73 ¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤Ë¤Ï¡¢¤³¤Îµ¬Â§¤Ë½¾¤ï¤Ê¤¤¥Ñ¥¹¥ï¡¼¥É¤òÁªÂò¤¹¤ë
74 ¤¿¤á¤ÎÀµÅö¤ÊÍýͳ¤¬¤¢¤ë¾ì¹ç¤â¤¢¤í¤¦¡£
75 .\"O The two argument form gives the
76 .\"O .IR user " the " password
77 .\"O stated as the second argument. Note that this password will
78 .\"O be visible to people doing `ps' or so. Avoid this form.
80 Æó¤Ä¤Î°ú¿ô¤ò»ý¤Ä·Á¼°¤Ç¤Ï¡¢ÆóÈÖÌܤΰú¿ô¤Çµ½Ò¤µ¤ì¤¿
85 ¤³¤Î¥Ñ¥¹¥ï¡¼¥É¤Ï`ps'¤½¤Î¾¤ò¼Â¹Ô¤¹¤ë¿Íã¤Ë¸«¤¨¤Æ¤·¤Þ¤¦¤³¤È¤Ë
86 Ãí°Õ¤»¤è¡£¤³¤Î·Á¼°¤Ï»È¤¦¤Ù¤¤Ç¤Ï¤Ê¤¤¡£
87 .\"O Giving an empty string as the second argument erases the password for the
88 .\"O user, but only in combination with the
92 Æó¤Ä¤Î°ú¿ô¤È¤·¤Æ¶õʸ»ú¤òÍ¿¤¨¤ë¤È¥æ¡¼¥¶¤Î¥Ñ¥¹¥ï¡¼¥É¤ò
95 ¥ª¥×¥·¥ç¥ó¤ÈÁȤ߹ç¤ï¤»¤¿¾ì¹ç¤À¤±¤Ç¤¢¤ë¡£
97 .\"O Password changes may get logged using the
99 .\"O facility, depending on compile-time defines (on by default).
100 .\"O If so, every change will
101 .\"O be logged at a low level as auth.notice, except for changing the root
102 .\"O password with will be logged with auth.warning.
107 ¤òÍøÍѤ·¤ÆµÏ¿¤¹¤ë¤³¤È¤¬¤Ç¤¤ë¡£
108 ¤³¤ì¤Ï¥³¥ó¥Ñ¥¤¥ë»þ¤ÎÄêµÁ¤Ë°Í¸¤¹¤ë¡Ê¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï͸ú¡Ë¡£
109 ¤³¤Î¾ì¹ç¡¢¥ë¡¼¥È¤Î¥Ñ¥¹¥ï¡¼¥É¤ò½ü¤¯Á´¤Æ¤Î¥Ñ¥¹¥ï¡¼¥É¤ÎÊѹ¹¤Ï
110 auth.notice¤È¤¤¤¦Äã¥ì¥Ù¥ë¤ÇµÏ¿¤µ¤ì¤ë¡£¥ë¡¼¥È¤Î¥Ñ¥¹¥ï¡¼¥É
111 ¤ÎÊѹ¹¤Ïauth.warning¤Î¥ì¥Ù¥ë¤ÇµÏ¿¤µ¤ì¤ë¡£
115 .\"O .B "\-f, \-\-fullname"
116 .\"O Change the user's full name (the GECOS field of the passwd entry).
117 .\"O Invokes /usr/bin/chfn with the non-option command line arguments.
119 .B "\-f, \-\-fullname"
120 ¥æ¡¼¥¶¤Î¥Õ¥ë¥Í¡¼¥à¡Êpasswd¤ÎGECOS¥Õ¥£¡¼¥ë¥É¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¡Ë¤òÊѹ¹¤¹¤ë¡£
121 /usr/bin/chfn¤ò¥ª¥×¥·¥ç¥ó¤Ç¤Ê¤¤¥³¥Þ¥ó¥É¹Ô°ú¿ô¤È¤È¤â¤Ë¸Æ¤Ó½Ð¤¹¡£
123 .\"O .B "\-o, \-\-force"
124 .\"O Turn off simplicity checks on the new password. This option may only
125 .\"O be used by the super user. This is intend to allow simple initial
126 .\"O passwords given by the superuser.
129 ¿·¤·¤¤¥Ñ¥¹¥ï¡¼¥É¤Îñ½ãÀ¤Î¥Á¥§¥Ã¥¯¤ò¹Ô¤ï¤Ê¤¤¡£
130 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤Î¤ß»ÈÍѤǤ¤ë¡£
131 ¤³¤ì¤Ï¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤ËÍ¿¤¨¤é¤ì¤¿½é´ü¾õÂ֤Ǥâ
132 ñ½ã¤Ê¥Ñ¥¹¥ï¡¼¥É¤ò͸ú¤Ë¤¹¤ë¤³¤È¤òÌÜŪ¤È¤·¤¿
135 .\"O .B "\-s, \-\-shell"
136 .\"O Change the user's shell by invoking /usr/bin/chsh with the non-option
137 .\"O command line arguments.
140 /usr/bin/chsh¤ò¥ª¥×¥·¥ç¥ó¤Ç¤Ê¤¤¥³¥Þ¥ó¥É¹Ô°ú¿ô¤È¤È¤â¤Ë
141 ¥æ¡¼¥¶¤Î¥·¥§¥ë¤òÊѹ¹¤¹¤ë¡£
143 .\"O .B "\-q, \-\-quiet, \-\-silent"
144 .\"O In this mode passwd won't tell that the passwd get's changed.
146 .B "\-q, \-\-quiet, \-\-silent"
147 ¤³¤Î¥â¡¼¥É¤Îpasswd¤Ï¡¢¥Ñ¥¹¥ï¡¼¥É¤¬Êѹ¹¤ò¼õ¤±¤¿¤³¤È¤òÄÌÃΤ·¤Ê¤¤¡£
149 .\"O .B "\-v, \-V, \-\-version"
150 .\"O Prints version information and exits.
153 .B "\-v, \-V, \-\-version"
154 ¥Ð¡¼¥¸¥ç¥ó¾ðÊó¤ò½ÐÎϤ·¡¢½ªÎ»¤¹¤ë¡£
156 .\"O .SH PASSWORD RULES
158 .\"O The new password must fulfill these rules:
161 ¿·¤·¤¤¥Ñ¥¹¥ï¡¼¥É¤Ï°Ê²¼¤Îµ¬Â§¤Ë½¾¤ï¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
164 .\"O be at least six characters long;
168 ¾¯¤Ê¤¯¤È¤â£¶Ê¸»ú¤Ç¤¢¤ë¤³¤È;
172 .\"O must not be equal to the old password;
176 ¸Å¤¤¥Ñ¥¹¥ï¡¼¥É¤ÈƱ¤¸¤Ç¤Ï¤Ê¤é¤Ê¤¤;
180 .\"O must contain characters out of at least two of the following classes:
181 .\"O upper and lower case letters, digits and non alphanumeric characters;
185 ¾¯¤Ê¤¯¤È¤â¼¡¤Îʸ»ú¥¯¥é¥¹¤ÎÆâ¤ÎÆó¤Ä¤«¤é¼è¤é¤ì¤¿Ê¸»ú¤ò´Þ¤Þ¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤:
186 Âçʸ»ú¤ª¤è¤Ó¾®Ê¸»ú¡£¥¢¥é¥Ó¥¢¿ô»ú¤ª¤è¤ÓÈó±Ñ¿ô»ú¡£
190 .\"O must not match neither the username nor any word of the realname,
191 .\"O neither in normal nor in reverse order, neither at the beginning nor
193 ¥æ¡¼¥¶Ì¾¤â¼Â̾¤Î¤¦¤Á¤Î¤¤¤º¤ì¤Îñ¸ì¤È¤â¡¤Àµ½ç¤Ç¤âµÕ½ç¤Ç¤â¡¤
194 ³«»Ï¤Ç¤â½ª¤ï¤ê¤Ç¤â°ìÃפ·¤Æ¤Ï¤¤¤±¤Ê¤¤¡£
196 .\"O If you change your mind there is no escaping from this program.
197 .\"O It will insist on a new password until killed from another terminal.
198 .\"O (This is caused by a bug in getpass(3): it ignores signals.)
200 µ¤¤¬ÊѤï¤Ã¤Æ¤â¤³¤Î¥×¥í¥°¥é¥à¤«¤éÈ´¤±¤ë¤³¤È¤¬½ÐÍè¤Ê¤¤¡£
201 ¾¤Î¥¿¡¼¥ß¥Ê¥ë¤«¤é¥¥ë¤µ¤ì¤ë¤Þ¤Ç¤Ë¿·¤·¤¤¥Ñ¥¹¥ï¡¼¥É¤òÍ׵ᤵ¤ì¤ë¤À¤í¤¦¡£
202 (¤³¤ì¤Ï¥·¥°¥Ê¥ë¤ò̵»ë¤¹¤ë¤È¤¤¤¦getpass(3)¤Î¥Ð¥°¤Ë¤è¤ë¤â¤Î¤Ç¤¢¤ë¡£)
206 .\"O The password file.
218 .\"O Peter Orbaek (poe@daimi.aau.dk).
220 .\"O Martin Schulze (joey@infodrom.north.de) with extensive rewriting and
223 Peter Orbaek (poe@daimi.aau.dk).
225 Martin Schulze (joey@infodrom.north.de)¤Ë¤è¤Ã¤Æ¹ÈϰϤν¤ÀµµÚ¤Ó