1 | pwck
|
2 | ===
|
3 |
|
4 | 用来验证系统认证文件内容和格式的完整性
|
5 |
|
6 | ## 补充说明
|
7 |
|
8 | **pwck命令** 用来验证系统认证文件`/etc/passwd`和`/etc/shadow`的内容和格式的完整性。
|
9 |
|
10 | ### 语法
|
11 |
|
12 | ```shell
|
13 | pwck(选项)(参数)
|
14 | ```
|
15 |
|
16 | ### 选项
|
17 |
|
18 | ```shell
|
19 | -q:仅报告错误信息;
|
20 | -s:以用户id排序文件“/etc/passwd”和“/etc/shadow”;
|
21 | -r:只读方式运行指令。
|
22 | ```
|
23 |
|
24 | ### 参数
|
25 |
|
26 | * 密码文件:指定密码文件的路径;
|
27 | * 影子文件:指定影子文件的路径。
|
28 |
|
29 | ### 实例
|
30 |
|
31 | ```shell
|
32 | pwck /etc/passwd
|
33 | user 'lp': directory '/var/spool/lpd' does not exist
|
34 | user 'news': directory '/var/spool/news' does not exist
|
35 | user 'uucp': directory '/var/spool/uucp' does not exist
|
36 | user 'www-data': directory '/var/www' does not exist
|
37 | user 'list': directory '/var/list' does not exist
|
38 | user 'irc': directory '/var/run/ircd' does not exist
|
39 | user 'gnats': directory '/var/lib/gnats' does not exist
|
40 | user 'nobody': directory '/nonexistent' does not exist
|
41 | user 'syslog': directory '/home/syslog' does not exist
|
42 | user 'couchdb': directory '/var/lib/couchdb' does not exist
|
43 | user 'speech-dispatcher': directory '/var/run/speech-dispatcher' does not exist
|
44 | user 'usbmux': directory '/home/usbmux' does not exist
|
45 | user 'haldaemon': directory '/var/run/hald' does not exist
|
46 | user 'pulse': directory '/var/run/pulse' does not exist
|
47 | user 'saned': directory '/home/saned' does not exist
|
48 | user 'hplip': directory '/var/run/hplip' does not exist
|
49 | pwck:无改变
|
50 | ```
|
51 |
|
52 |
|