如果你透过新增或移除使用者来修改群组或改变群组密码,/etc/gshadow 档都将被改变。 groups, groupadd, groupmod, 和 groupdel 程式是用来供应 Shadow Suite 部分可以变更群组。 /etc/group 档格式如下: groupname:!:GID:member,member,... 其中: groupname The name of the group ! The field that normally holds the password, but that is now relocated to the /etc/gshadow file. GID The numerical group ID number member List of group members /etc/gshadow 档格式如下: groupname:password:admin,admin,...:member,member,... 其中: groupname The name of the group password The encoded group password. admin List of group administrators member List of group members gpasswd 指令是用在新增或移除管理者和群组成员。 root 或其他在群组管理者人员可新增或移除群组成员。 群组密码可以透过 passwd 指令改变,需透过 root 或在该群组管理者有权限的帐号方可修改。 Despite the fact that there is not currently a manual page for gpasswd, typing gpasswd without any parameters gives a listing of options. It's fairly easy to grasp how it all works once you understand the file formats and the concepts. 7.5 检查程式一致性 pwck pwck 程式提供在 /etc/passwd 和 /etc/shadow 档的一致性检查。它将检查每个使用者名称且依照下列步骤确认: the correct number of fields unique user name valid user and group identifier valid primary group valid home directory (出处:清风网络学院 )
复制本页网址和标题,发送给你QQ/Msn的好友一起分享
上一篇:Linux Shadow-Password-HOWTO - 8. 加入 shadow 支援 C 语言(1)
下一篇:Linux Shadow-Password-HOWTO - 7. 将 Shadow Suite 放进来使用(1)