linux – 如何自动调和/ 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

我已经尝试了各种与群体相关的命令,然后用Google搜索,但到目前为止我还没有找到答案.

解决方法

男人得到了我之前错过的答案:
grpconv

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

The grpconv command creates gshadow from group and an optionally existing gshadow.

相关文章

在Linux上编写运行C语言程序,经常会遇到程序崩溃、卡死等异...
git使用小结很多人可能和我一样,起初对git是一无所知的。我...
1. 操作系统环境、安装包准备 宿主机:Max OSX 10.10.5 虚拟...
因为业务系统需求,需要对web服务作nginx代理,在不断的尝试...
Linux模块机制浅析 Linux允许用户通过插入模块,实现干预内核...
一、Hadoop HA的Web页面访问 Hadoop开启HA后,会同时存在两个...