/etc/group 與 /etc/password 的問題 - Linux

Table of Contents

想問一下關於 /etc/group/ 跟 /etc/password/ 的兩個問題(觀念)

1. 當一個群組為某一使用者的初始群組時,在/etc/group該群組的第四個欄位並
不會顯示該使用者的帳號名稱嗎?

例如 /etc/password 內容為
A98F::8011:105:A98F:/home/brain:/usr/bin/cs
A98Z::8012:105:A98Z:/home/brain:/usr/bin/cs
A98D::8013:105:A98D:/home/brain:/usr/bin/cs

而 /etc/group 內容為
zobol:*:105:15151

是否表示使用者A98F, A98Z, A98D與15151皆為包含在群組105內。

2. 若/etc/group/內容如上所示,若我將使用者15151自系統內刪除,則/etc/group
內容是否會自動更新為 zobol:*:105: 呢?

--

All Comments

Eden avatarEden2010-05-31
try it
Cara avatarCara2010-06-04
If I have the Server...