passwd

PASSWD(5)                        File formats                        PASSWD(5)



NAME å稱
       passwd - å¯ç¢¼æªæ¡

æè¿°
       Passwd æ¯åç´æåæª, å®åå«äºä¸å系統帳æ¶å表,
       給åºæ¯å帳æ¶ä¸äºæç¨çä¿¡æ¯ï¼æ¯å¦ä½¿ç¨è ID,çµ ID, 家ç®é, shell,ç.
       é常å®ä¹åå«äºæ¯å使ç¨èç¶éå å¯çå¯ç¢¼.
       å®é常æ該æ¯å¯è®çï¼è¨±å¤å½ä»¤ï¼å·¥å·ç¨å¼ï¼å ls(1) ç¨å®å使ç¨è Id
       å°ä½¿ç¨èå稱çæ å°ï¼,ä½æ¯åªå許è¶ç´ä½¿ç¨èæ寫æ¹å¼æ¬é.

       å¨éå»ç¾å¥½çæ¥åè£ï¼é種ä¸è¬çè®è¨±å¯æ²æä»éº¼å¤§åé¡.
       æ¯å人é½è½è®å°å å¯äºçå¯ç¢¼ï¼å çºç¡¬é«å¤ªæ¢ä»¥è³æ¼ä¸è½è§£éä¸å
       ç²¾é¸çå¯ç¢¼ï¼å¦å¤ï¼éåºæ¬åå®æ¯çºå好ç使ç¨åé«ä½¿ç¨ç.
       ç¾å¨ï¼è¨±å¤äººéè¡ä¸äºçæ¬çå½±åå¯ç¢¼å¥ä»¶ï¼å®åå¨ /etc/passwd çå¯ç¢¼åè£æ¯
       *ï¼èä¸åæ¯å å¯çå£ä»¤ï¼ å å¯çå£ä»¤æ¾å¨ /etc/shadow ä¸‐
       ï¼é£åæªæ¡åªæè¶ç´ä½¿ç¨èè½è®ï¼

       ä¸ç®¡æ¯å¦ä½¿ç¨äºå½±åå¯ç¢¼ï¼è¨±å¤ç³»çµ±ç®¡çå¡ä½¿ç¨ä¸åæèå¨å å¯çå¯ç¢¼å段
       以確ä¿ä½¿ç¨èä¸è½éå¥ä»ï¼å¥¹ï¼èªå·±çå¯ç¢¼. (è¦ä¸é¢ç注æ)

       å¦æä½ å»ºç«äºä¸åæ°çç»å¥ï¼é¦åæ¾åæèå¨å¯ç¢¼å段, ç¶å¾ä½¿ç¨ passwd(1) è¨‐
       ç½®å®.

       ï¼å¯ç¢¼æªæ¡ï¼è£æ¯è¡ä¸æ¢è¨éï¼ä¸¦ä¸æ¯è¡æé樣çæ ¼å¼ï¼

              account:password:UID:GID:GECOS:directory:shell
              ï¼å¸³è:å¯ç¢¼:使ç¨èID:çµID:ä¸è¬çä¿¡æ¯:ç®é:shellï¼

       å段æè¿°å¦ä¸:


              account   使ç¨èå¨ç³»çµ±ä¸çååï¼å®ä¸è½åå«å¤§å¯«åæ¯.

              password  å å¯ç使ç¨èå¯ç¢¼ï¼æèæèã

              UID       使ç¨è ID æ¸ã

              GID       使ç¨èç主è¦çµ ID æ¸ã

              GECOS     éå段æ¯å¯é¸çï¼é常çºäºåæ¾ä¿¡æ¯ç®çèè¨çï¼
                        é常ï¼å®åå«äºä½¿ç¨èçå¨å. GECOS æææ¯éç¨é»æ°£ç¶åä½æ¥‐
                        系統ï¼General Electric Comprehensive Operating
                        Systemï¼, ç¶ GE ç大å系統é¨åå²å®è³£çµ¦ Honeywell
                        æå®è¢«æ¹çº GCOS. Dennis Ritchie
                        ä½éå ±åï¼"æææåç¼éå°å·åææ¹éä½æ¥å° GCOSæ©å¨æï¼gcos å‐
                        段ææ·äº $IDENT å¡çä¿¡æ¯ï¼ä¸å¤ªç¾è§ã"ï¼è‐
                        ¯èï¼ææ³æ¯å¤ªé·å§ï¼

              directory 使ç¨èç $HOME ç®é.

              shell     ç»å¥æéè¡çç¨å¼ï¼å¦æ空çï¼ä½¿ç¨ /bin/sh).  å¦æè¨çºä¸å‐
                        å¨çå·è¡ï¼ç¨å¼ï¼ï¼ä½¿ç¨èä¸è½éé login(1) ç»å¥.

注æ
       å¦æä½ æ³å»ºç«ä½¿ç¨èçµï¼ä»åç GID å¿é ç¸ç並ä¸ä¸å®æ¯å¨
       /etc/groupçä¸æ¢è¨é, è¦ä¸ç¶çµå°±ä¸åå¨ï¼

       å¦æå å¯å¯ç¢¼è¨ææèï¼ä½¿ç¨èå°ä¸è½ç¨ login(1) ä¾ç»å¥, ä½ä¾ç¶å¯ä»¥ç¨
       rlogin(1) ç»å¥, éé rsh(1) æè cron(1) æè at(1) æè mail é濾å¨ç‐
       ç¨å¼éè¡å·²æçé²ç¨åéå§æ°çç.  試åééç°¡å®æ¹è® shell å‐
       段éä½ä¸å使ç¨èçµææ¯ä¸æ¨£çï¼ èä¸ééä¸äºä½¿ç¨ su(1) çæ¬éï¼

ç¸éæªæ¡
       /etc/passwd

åè¦
       passwd(1), login(1), su(1), group(5), shadow(5)

[ä¸æçç¶è·äºº]
       Scorpio <rawk@chinese.com>

[ä¸æçææ°æ´æ°]
       2000/11/26

ãä¸ålinuxè«å£manæåé ç¿»è¯è¨åã:
       http://cmpp.linuxforum.net



                                January 5, 1998                      PASSWD(5)