• pwck
    • 补充说明
      • 语法
      • 选项
      • 参数
      • 实例

    pwck

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

    补充说明

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

    语法

    1. pwck(选项)(参数)

    选项

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

    参数

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

    实例

    1. pwck /etc/passwd
    2. user 'lp': directory '/var/spool/lpd' does not exist
    3. user 'news': directory '/var/spool/news' does not exist
    4. user 'uucp': directory '/var/spool/uucp' does not exist
    5. user 'www-data': directory '/var/www' does not exist
    6. user 'list': directory '/var/list' does not exist
    7. user 'irc': directory '/var/run/ircd' does not exist
    8. user 'gnats': directory '/var/lib/gnats' does not exist
    9. user 'nobody': directory '/nonexistent' does not exist
    10. user 'syslog': directory '/home/syslog' does not exist
    11. user 'couchdb': directory '/var/lib/couchdb' does not exist
    12. user 'speech-dispatcher': directory '/var/run/speech-dispatcher' does not exist
    13. user 'usbmux': directory '/home/usbmux' does not exist
    14. user 'haldaemon': directory '/var/run/hald' does not exist
    15. user 'pulse': directory '/var/run/pulse' does not exist
    16. user 'saned': directory '/home/saned' does not exist
    17. user 'hplip': directory '/var/run/hplip' does not exist
    18. pwck:无改变