运行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.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。