如何自动协调/ etc / group和/ etc / gshadow

运行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 ,但我宁愿让操作系统去做,以防止错字和手工劳动。

有什么可以自动协调一个组成gshadow? 也许像(使这个):

 # grpfix foo 

我已经尝试过各种与群组相关的命令,并search了一些,但到目前为止,我还没有find答案。

男人有我以前错过的答案:

 grpconv 

http://linux.die.net/man/8/grpconv

grpconv命令从组和可选的现有的gshadow中创buildgshadow。