linux – 如何自动调和 etcgroup和 etcgshadow

linux – 如何自动调和 etcgroup和 etcgshadow,第1张

概述运行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 运行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 – 如何自动调和/ etc / group和/ etc / gshadow全部内容,希望文章能够帮你解决linux – 如何自动调和/ etc / group和/ etc / gshadow所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/yw/1042926.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存