Initial commit for Tizen
[profile/extras/shadow-utils.git] / man / zh_TW / passwd.5
1 .\" Copyright (c) 1993 Michael Haardt (michael@moria.de), Fri Apr 2 11:32:09 MET DST 1993
2 .\" Chinese Version Copyright Scorpio, www.linuxforum.net, 2000
3 .\"
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
8 .\"
9 .\" The GNU General Public License's references to "object code"
10 .\" and "executables" are to be interpreted as the output of any
11 .\" document formatting or typesetting system, including
12 .\" intermediate and printed output.
13 .\"
14 .\" This manual is distributed in the hope that it will be useful,
15 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 .\" GNU General Public License for more details.
18 .\"
19 .\" You should have received a copy of the GNU General Public
20 .\" License along with this manual; if not, write to the Free
21 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
22 .\" USA.
23 .\"
24 .\" Modified Sun Jul 25 10:46:28 1993 by Rik Faith (faith@cs.unc.edu)
25 .\" Modified Sun Aug 21 18:12:27 1994 by Rik Faith (faith@cs.unc.edu)
26 .\" Modified Sun Jun 18 01:53:57 1995 by Andries Brouwer (aeb@cwi.nl)
27 .\" Modified Mon Jan 5 20:24:40 MET 1998 by Michael Haardt
28 .\" (michael@cantor.informatik.rwth-aachen.de)
29 .TH PASSWD 5 "January 5, 1998" "" "File formats"
30 .SH NAME 名稱
31 passwd \- 密碼檔案
32 .SH 描述
33 .B Passwd
34 是個純文字檔, 它包含了一個系統帳戶列表,
35 給出每個帳戶一些有用的信息,比如使用者 ID,組 ID, 家目錄, shell,等.
36 通常它也包含了每個使用者經過加密的密碼.
37 它通常應該是可讀的(許\多命令,工具程式,像
38 .BR ls (1)
39 用它做使用者 Id 到使用者名稱的映射),但是只允許\超級使用者有寫方式權限.
40 .PP
41 在過去美好的日子裏,這種一般的讀許\可沒有什麼大問題.
42 每個人都能讀到加密了的密碼,因為硬體太慢以至於不能解開一個
43 精選的密碼,另外,這基本假定是為友好的使用團體使用的.
44 現在,許\多人運行一些版本的影子密碼套件,它們在
45 .I /etc/passwd
46 的密碼域裏是 *,而不再是加密的口令,
47 加密的口令放在
48 .I /etc/shadow
49 中,那個檔案只有超級使用者能讀.
50 .PP
51 不管是否使用了影子密碼,許\多系統管理員使用一個星號在加密的密碼字段
52 以確保使用者不能鑒別他(她)自己的密碼. (見下面的注意)
53 .PP
54 如果你建立了一個新的登入,首先放個星號在密碼字段,
55 然後使用
56 .BR passwd (1)
57 設置它.
58 .PP
59 (密碼檔案)裏每行一條記錄,並且每行有這樣的格式:
60 .sp
61 .RS
62 account:password:UID:GID:GECOS:directory:shell
63 (帳號:密碼:使用者ID:組ID:一般的信息:目錄:shell)
64 .RE
65 .sp
66 字段描述如下:
67 .sp
68 .RS
69 .TP 1.0in
70 .I account
71 使用者在系統中的名字,它不能包含大寫字母.
72 .TP
73 .I password
74 加密的使用者密碼,或者星號。
75 .TP
76 .I UID
77 使用者 ID 數。
78 .TP
79 .I GID
80 使用者的主要組 ID 數。
81 .TP
82 .I GECOS
83 這字段是可選的,通常為了存放信息目的而設的.
84 通常,它包含了使用者的全名. GECOS 意思是通用電氣綜合作業系統(General Electric
85 Comprehensive Operating System), 當 GE 的大型系統部分割售賣給 Honeywell
86 時它被改為 GCOS. Dennis Ritchie 作過報告:"有時我們發送印刷品或批道作業到
87 GCOS機器時,gcos 字段打斷了 $IDENT 卡的信息,不太美觀。"(譯者:我想是太長吧) 
88 .TP
89 .I directory
90 使用者的 $HOME 目錄.
91 .TP
92 .I shell
93 登入時運行的程式(如果空的,使用
94 .BR /bin/sh ).
95 如果設為不存在的執行(程式),使用者不能通過
96 .BR login (1)
97 登入.
98 .RE
99 .SH 注意
100 如果你想建立使用者組,他們的 GID 必須相等並且一定是在
101 \fI/etc/group\fP的一條記錄, 要不然組就不存在.
102 .PP
103 如果加密密碼設成星號,使用者將不能用
104 .BR login (1)
105 來登入, 但依然可以用
106 .BR rlogin (1)
107 登入, 通過
108 .BR rsh (1)
109 或者
110 .BR cron (1)
111 或者
112 .BR at (1)
113 或者 mail 過濾器等程式運行已有的進程和開始新的等.
114 試圖通過簡單改變 shell 字段鎖住一個使用者結果是一樣的,
115 而且還附上了使用
116 .B su(1) 
117 的權限.
118 .SH 相關檔案
119 .I /etc/passwd
120 .SH "又見"
121 .BR passwd (1),
122 .BR login (1),
123 .BR su (1),
124 .BR group (5),
125 .BR shadow (5)
126 .br
127 .SH "[中文版維護人]"
128 .B Scorpio <rawk@chinese.com>
129 .SH "[中文版最新更新]"
130 .B 2000/11/26
131 .SH "《中國linux論壇man手冊頁翻譯計劃》:"
132 .BI http://cmpp.linuxforum.net