Linux详解

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

补充说明

pwck命令 用来验证系统认证文件/etc/passwd/etc/shadow的内容和格式的完整性。

语法

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:无改变

教程来源于Github,感谢大佬的无私奉献,致敬!

技术教程推荐

后端技术面试 38 讲 -〔李智慧〕

罗剑锋的C++实战笔记 -〔罗剑锋〕

Vim 实用技巧必知必会 -〔吴咏炜〕

物联网开发实战 -〔郭朝斌〕

反爬虫兵法演绎20讲 -〔DS Hunter〕

遗留系统现代化实战 -〔姚琪琳〕

手把手带你写一个 MiniTomcat -〔郭屹〕

互联网人的数字化企业生存指南 -〔沈欣〕

徐昊 · AI 时代的软件工程 -〔徐昊〕