良许Linux教程网 干货合集 Linux常用命令—pwck命令

Linux常用命令—pwck命令

Linux常用命令pwck命令 用来验证系统认证文件/etc/passwd/etc/shadow的内容和格式的完整性,下面良许教程网为大家分享一下Linux常用命令—pwck命令具体使用方法。

Linux常用命令—pwck命令

pwck

用来验证系统认证文件内容和格式的完整性

语法

 pwck(选项)(参数)

选项

 -q:仅报告错误信息;
 -s:以用户id排序文件“/etc/passwd”和“/etc/shadow”;
 -r:只读方式运行指令。

参数

  • 密码文件:指定密码文件的路径;

  • 影子文件:指定影子文件的路径。

实例

 pwck /etc/passwd
 user 'lp': directory '/var/spool/lpd' does not exist
 user 'news': directory '/var/spool/news' does not exist
 user 'uucp': directory '/var/spool/uucp' does not exist
 user 'www-data': directory '/var/www' does not exist
 user 'list': directory '/var/list' does not exist
 user 'irc': directory '/var/run/ircd' does not exist
 user 'gnats': directory '/var/lib/gnats' does not exist
 user 'nobody': directory '/nonexistent' does not exist
 user 'syslog': directory '/home/syslog' does not exist
 user 'couchdb': directory '/var/lib/couchdb' does not exist
 user 'speech-dispatcher': directory '/var/run/speech-dispatcher' does not exist
 user 'usbmux': directory '/home/usbmux' does not exist
 user 'haldaemon': directory '/var/run/hald' does not exist
 user 'pulse': directory '/var/run/pulse' does not exist
 user 'saned': directory '/home/saned' does not exist
 user 'hplip': directory '/var/run/hplip' does not exist
 pwck:无改变

总结

至此关于Linux常用命令pwck命令的使用方法分享结束,大家如果对pwck命令的使用方法还有问题可以通过评论区将问题提交我们。

以上就是良许教程网为各位朋友分享的Linux系统相关内容。想要了解更多Linux相关知识记得关注公众号“良许Linux”,或扫描下方二维码进行关注,更多干货等着你!

137e00002230ad9f26e78-265x300

本文由 良许Linux教程网 发布,可自由转载、引用,但需署名作者且注明文章出处。如转载至微信公众号,请在文末添加作者公众号二维码。
良许

作者: 良许

良许,世界500强企业Linux开发工程师,公众号【良许Linux】的作者,全网拥有超30W粉丝。个人标签:创业者,CSDN学院讲师,副业达人,流量玩家,摄影爱好者。
上一篇
下一篇

发表评论

联系我们

联系我们

公众号:良许Linux

在线咨询: QQ交谈

邮箱: yychuyu@163.com

关注微信
微信扫一扫关注我们

微信扫一扫关注我们

关注微博
返回顶部