passwd

PASSWD(1)                   General Commands Manual                  PASSWD(1)



åå
       passwd - ã¦ã¼ã¶ãã¹ã¯ã¼ããå¤æ´ãã

æ¸å¼
       passwd [ -f | -s  ] [ name ]
       passwd [ -g ] [ -r|R ] group
       passwd [ -x max ] [ -n min ] [ -w warn ] [ -i inact ] name
       passwd { -l | -u | -d | -S } name

説æ
       passwdã¯ã¦ã¼ã¶åã³ã°ã«ã¼ãã¢ã«ã¦ã³ãã®ãã¹ã¯ã¼ããå¤æ´ããã
       ä¸è¬ã¦ã¼ã¶ã¯èªåã®ã¢ã«ã¦ã³ãã®ãã¹ã¯ã¼ãããå¤æ´ã§ããªãã
       ã¹ã¼ãã¼ã¦ã¼ã¶ã¯ãããªãã¢ã«ã¦ã³ãã®ãã¹ã¯ã¼ããå¤æ´ãããã¨ãåºæ¥ãã
       ã°ã«ã¼ãã®ç®¡çèã¯ã°ã«ã¼ãã®ãã¹ã¯ã¼ããå¤æ´ãããã¨ãåºæ¥ãã
       passwdã«ãã£ã¦ãã¦ã¼ã¶ã®ãã«ãã¼ã ããã°ã¤ã³ã·ã§ã«ããã¹ã¯ã¼ãã®
       æéåãã®æ¥ä»åã³æå¹æéçã®ã¢ã«ã¦ã³ãæå ±ãå¤æ´ãããã¨ãã§ããã

   ãã¹ã¯ã¼ãã®å¤æ´
       ãã¹ã¯ã¼ããæ¢ã«ããå ´åã¯ãåãå¤ããã¹ã¯ã¼ããå¥åããããä¿ãããã
       å¥åããããã¹ã¯ã¼ãã¯ãæå·åãããè¨é²ããã¦ãããã®ã¨ç§åãããã æ‐
       £ãããã¹ã¯ã¼ãã1åã§å¥åããªãã¦ã¯ãªããªãã
       ã¹ã¼ãã¼ã¦ã¼ã¶ã¯ããã¹ã¯ã¼ããå¿ãã¦ãã¾ã£ãéã®å¤æ´ãè¡ãªããæ§ã«ã
       ãã®ã¹ããããç¡è¦ãããã¨ãåºæ¥ãã

       ãã¹ã¯ã¼ããå¥åãããå¾ããã¹ã¯ã¼ãæå¹æéã®æå ±ã調ã¹ã
       ç¾å¨ãã¹ã¯ã¼ãã®å¤æ´ã許ããã¦ãããæ¤æ»ããã
       ãã許å¯ããã¦ããªãå ´åã¯ãpasswdã¯å¤æ´ãæå¦ãã¦çµäºããã

       次ãã§ã代ããã®ãã¹ã¯ã¼ããå¥åããããä¿ãããã å¥åããããã¹ã¯ã¼ãã¯è¤éããæ¤æ»ãããã
       ä¸è¬çãªæéã¨ãã¦ã¯ããã¹ã¯ã¼ãã¯ä»¥ä¸ã®éåããããããä¸ã¤ä»¥ä¸ã® æåã使ã£ã6ãã8æå‐
       ã®ãã®ã«ãã¹ãã§ãã

            å°æåã®ã¢ã«ãã¡ããã

            大æåã®ã¢ã«ãã¡ããã

            0ãã9è¿ã®æ°å

            å¥èªç¹

       ã·ã¹ãã ã®ãã£ãã©ã«ãã®æ¶å»æåãkillæåãå«ããªãæ§ã« 注æããªãã¦ã¯ãªããªãã
       passwdã¯ãã¾ãã«åç´ãªãã¹ã¯ã¼ãã¸ã®å¤æ´ã¯æå¦ããã

       å¥åãããã¹ã¯ã¼ããåãå¥ããããå ´åã
       passwdã¯ããä¸åº¦å¥åãä¿ããäºçªç®ã«å¥åãããã®ãæåã® ãã®ã¨æ¯è¼ããã
       ãã¹ã¯ã¼ãå¤æ´ãåãå¥ããããããã«ã¯ã両æ¹ã®å¥åã符åãªãã¦ã¯ãªããªãã

   ã°ã«ã¼ããã¹ã¯ã¼ã
       -gãªãã·ã§ã³ãç¨ããå ´åãæå®ããã°ã«ã¼ãã®ãã¹ã¯ã¼ããå¤æ´ãããã
       ã¹ã¼ãã¼ã¦ã¼ã¶ãæå®ããã°ã«ã¼ãã®ç®¡çèã§ãªã㨠ãã®ãªãã·ã§ã³ã¯ä½¿ããªãã
       ç¾å¨ã®ã°ã«ã¼ããã¹ã¯ã¼ãã¯å°ãã¦ããªãã -gãªãã·ã§ã³ã-rãªãã·ã§ã³ã¨ã¨ãã«ç¨ããã¨ã
       æå®ããã°ã«ã¼ãã®ãã¹ã¯ã¼ããåé¤ãããã
       ããããã¨ãå¨ã¦ã®ã¡ã³ãã¼ããã®ã°ã«ã¼ãã«ã¢ã¯ã»ã¹ã§ããã
       -Rãªãã·ã§ã³ã-gãªãã·ã§ã³ã¨ã¨ãã«ç¨ããã¨ã
       å¨ã¦ã®ã¦ã¼ã¶ã«å¯¾ãã¦æå®ããã°ã«ã¼ãã¸ã®ã¢ã¯ã»ã¹ãç¦æ¢ããäºãåºæ¥ãã

   ãã¹ã¯ã¼ãã®æå¹æéæå ±
       ãã¹ã¯ã¼ãã®æå¹æéã®æå ±ã¯ã¹ã¼ãã¼ã¦ã¼ã¶ã-xã-nã
       -wåã³-iãªãã·ã§ã³ãç¨ãã¦å¤æ´ã§ããã -xãªãã·ã§ã³ã¯ãã¹ã¯ã¼ããæå¹ãªæ大æ¥æ°ãè¨‐
       å®ããã®ã«ç¨ããããã maxæ¥ãéããã¨ãã¹ã¯ã¼ããå¤æ´ããããã«æ±ããããã
       -nãªãã·ã§ã³ã¯ãã¹ã¯ã¼ããå¤æ´å¯è½ã¨ãªãã¾ã§ã®æå°æ¥æ°ã è¨å®ããã®ã«ç¨ããããã
       ã¦ã¼ã¶ã¯minæ¥ãçµéããå¾ã§ãªãã¨ãã¹ã¯ã¼ããå¤æ´ãããã¨ã ã§ããªãã
       -wãªãã·ã§ã³ã¯ãã¹ã¯ã¼ãã®ä½¿ç¨æéãæ¥ãåã«ä½æ¥é è¦åãä¸ããããè¨å®ããããã«ç¨ããããã
       æéåãã®warnæ¥åãã注æãéå§ããã ãã¨ä½æ¥ã§ãã¹ã¯ã¼ããæéåãã«ãªããã示ãããã
       -iãªãã·ã§ã³ã¯ããã¹ã¯ã¼ãã®æéãåãããã¨ä½æ¥éãã®ã¢ã«ã¦ã³ã
       ã使ç¨ä¸è½ã®ç¶æã«ããããè¨å®ããã®ã«ç¨ããã
       inactæ¥éã¢ã«ã¦ã³ãããã¹ã¯ã¼ãæéåãç¶æã®ã¾ã¾ã«ããã¨ã
       ã¦ã¼ã¶ã¯ãã®ã¢ã«ã¦ã³ãã«å¥ããã¨ãåºæ¥ãªããªãã

   ã¢ã«ã¦ã³ãã®ä¿å®
       -låã³-uãã©ãã°ãç¨ãã¦ã¢ã«ã¦ã³ããããã¯ããã ããã¯ãå¤ãããããäºãåºæ¥ãã
       -lãªãã·ã§ã³ãç¨ããã¨ããã¹ã¯ã¼ãã¯æå·åãããå¦ä½ãªãå¤ã¨ã
       符åããªããªããã¢ã«ã¦ã³ãã¯ä½¿ç¨ä¸è½ã«ãªãã
       -uãªãã·ã§ã³ãç¨ããã¨ããã¹ã¯ã¼ãã以åã®å¤ã«æ»ãã ã¢ã«ã¦ã³ããåã³ä½¿ç¨å¯è½ã¨ãªãã

       -Sãªãã·ã§ã³ãç¨ããã¨ã¢ã«ã¦ã³ãã®ç¶æã表示ãããã
       ã¢ã«ã¦ã³ãã®ç¶æã®æå ±ã¯6ã¤ã®é¨åãããªãã æåã®é¨åã¯ãã¢ã«ã¦ã³ãã«ã‐
       ãã¯ãããããã¦ããã®ã(L)ã ãã¹ã¯ã¼ããåå¨ããªãã®ã(NP)ã
       ãããã¯ä½¿ç¨å¯è½ãªãã¹ã¯ã¼ãããã(P)ã®ãã示ãã
       2çªç®ã¯æå¾ã«ãã¹ã¯ã¼ããå¤æ´ãããæ¥ä»ã示ãã æ®ãã®4ã¤ã®é¨åã¯ãããããã¹ã¯ã¼ãã®æç‐
       æéãæé·æéãè¦åæéã 使ç¨ä¸è½æéã§ããã

   ã¦ã¼ã¶ãã¹ã¯ã¼ãã«å¯¾ãããã³ã
       ãã¹ã¯ã¼ãã®å®å¨æ§ã¯æå·åã¢ã«ã´ãªãºã ã®å¼·åãã¨ãã¼ç©ºéã®å¤§ããã« ä¾åããã
       UNIXã®ã·ã¹ãã æå·åã®æ¹æ³ã¯NBS DESã¢ã«ã´ãªãºã ã«
       åºã¥ãã¦ãããé常ã«å®å¨æ§ãé«ãã ã‐
       ã¼ç©ºéã®å¤§ããã¯é¸ã°ãããã¹ã¯ã¼ãã®ã©ã³ãã ãã«ä¾åããã

       ãã¹ã¯ã¼ãã®å®å¨æ§ãèããããã®ã¯ã大æµã®å ´åãã¹ã¯ã¼ãã注ææ·±ã
       é¸ã³æ±ããªãäºã«ããã ãããã£ã¦ããã¹ã¯ã¼ãã¯è¾æ¸ã«è¼ã£ã¦ããªããã®è¥ããã¯
       æ¸ãçããå¿è¦ã®ãªããã®ãé¸æãã¹ãã§ããã
       ã¾ããåºæåè©ãå許証çªå·ãèªçæ¥ãèªå®ã®ä½æã¨ãã£ããã®ã
       ãã¹ã¯ã¼ãã«ããã®ãé¿ããã¹ãã§ããã ã¨ããã®ã¯ãä¸ã®ããããã·ã¹ãã ã®ã»ã‐
       ã¥ãªãã£ãç¯ãéã®æ¨éã¨ã㦠ç¨ããããå¯è½æ§ãããããã§ããã

       ãã¹ã¯ã¼ãã¯ç´çã«æ¸ãçãã¦ããå¿è¦ãç¡ããããªç°¡åã«æãåºãã ãã®ã«ããªãã¦ã¯ãªããªãã
       ããã¯ãä¾ãã°çãäºã¤ã®åèªããã£ä»ãã¦ãã®éã«ç¹æ®è¨å·åã¯æ°åã
       æã¿è¾¼ããã¨ã«ãã£ã¦ä½ããã¨ãåºæ¥ãã ä¾ãã°ãPass%wordçã§ããã

       ä»ã®ä½ãæ¹ã¨ãã¦ã¯ãæå¦ä½åãªã©ããæãåºããããå¥ãé¸ã³åºãã
       ããããã®åèªããæåè¥ããã¯æå¾ã®æåãæãåºãæ¹æ³ãããã ãã®æ¹æ³ã®ä¾ã¨ãã¦ã¯

            Ask not for whom the bell tolls.

       ã¨ããå¥ãã次ã®æ§ãªãã¹ã¯ã¼ããä½ãåºããã

            An4wtbt.

       æããã¯ã©ãã«ã¼ã®æã£ã¦ããè¾æ¸ã«ãããªèªå¥ã¯è¼ã£ã¦ããªãããã ã ã¨æãã§ãããã
       ããããããã«ç¤ºããæ¹æ³ã ãã«é ¼ãã®ã§ã¯ãªããèªåç¬èªã®ãã¹ã¯ã¼ã
       ã®ä½ãæ¹ãèãåºãã¹ãã§ããã

   ã°ã«ã¼ãã®ãã¹ã¯ã¼ãã«é¢ãã注æ
       ã°ã«ã¼ããã¹ã¯ã¼ãã¯ãä¸äººä»¥ä¸ã®äººéãç¥ããã¨ã許ããããã®ã§ããããã çæ¥çã«ã»ã‐
       ã¥ãªãã£ä¸ã®åé¡ãæ±ãã¦ããã ããããã°ã«ã¼ãã¨ããéå·ç«ã¦ã¯å¥ãã®äººéãå±åã§ä½æ¥‐
       ããäºãåºæ¥ãã®ã§ã 便å©ã§ã¯ããã

è¦å
       å¨ã¦ã®ãªãã·ã§ã³ã使ããããã«ã¯è¨å®ããã¦ããªãå¯è½æ§ãããã
       ãã¹ã¯ã¼ãã®è¤éãã®æ¤è¨¼ã¯ãµã¤ãæ¯ã«ç°ãªã£ã¦ããã ããã
       ã¦ã¼ã¶ã¯ã·ã¹ãã ãæºè¶³ããååè¤éãªãã¹ã¯ã¼ããé¸ã¶ããå¼·ããããã
       NISãåä½ãã¦ãããããNISãµã¼ã以å¤ã«ãã°ã¤ã³ãã¦ããå ´åã¯
       ãã¹ã¯ã¼ããå¤æ´ãããã¨ãåºæ¥ãªãã

ãã¡ã¤ã«
       /etc/passwd - ã¦ã¼ã¶ã¢ã«ã¦ã³ãã«é¢ããæå ±
       /etc/shadow - ã¦ã¼ã¶ã®æå·åããããã¹ã¯ã¼ã

é¢é£é ç®
       passwd(3), shadow(3), group(4), passwd(4)

翻訳è
       å¤é«åç¦ <furutaka@Flux.tokai.jaeri.go.jp>






                                                                     PASSWD(1)