运行grpck
检查组,我看到这些错误:
'twinky' is a member of the 'foo' group in /etc/group but not in /etc/gshadow
'dipsy' is a member of the 'foo' group in /etc/group but not in /etc/gshadow
'laalaa' is a member of the 'foo' group in /etc/group but not in /etc/gshadow
'po' is a member of the 'foo' group in /etc/group but not in /etc/gshadow
'noonoo' is a member of the 'foo' group in /etc/group but not in /etc/gshadow
'dipsy' is a member of the 'foo' group in /etc/group but not in /etc/gshadow
...
...还有很多。我不确定这是怎么发生的,我想清理一下。我知道我可以手动编辑/etc/gshadow
,但是我宁愿让OS来做,以防止输入错误和体力劳动。
有什么可以自动调和小组到gshadow的东西吗?也许像(弥补):
# grpfix foo
我已经尝试过各种与组相关的命令,并在Google周围搜索,但到目前为止,我还没有找到答案。