UNPKG

1.56 kBMarkdownView Raw
1pwck
2===
3
4用来验证系统认证文件内容和格式的完整性
5
6## 补充说明
7
8**pwck命令** 用来验证系统认证文件`/etc/passwd``/etc/shadow`的内容和格式的完整性。
9
10### 语法
11
12```shell
13pwck(选项)(参数)
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
32pwck /etc/passwd
33user 'lp': directory '/var/spool/lpd' does not exist
34user 'news': directory '/var/spool/news' does not exist
35user 'uucp': directory '/var/spool/uucp' does not exist
36user 'www-data': directory '/var/www' does not exist
37user 'list': directory '/var/list' does not exist
38user 'irc': directory '/var/run/ircd' does not exist
39user 'gnats': directory '/var/lib/gnats' does not exist
40user 'nobody': directory '/nonexistent' does not exist
41user 'syslog': directory '/home/syslog' does not exist
42user 'couchdb': directory '/var/lib/couchdb' does not exist
43user 'speech-dispatcher': directory '/var/run/speech-dispatcher' does not exist
44user 'usbmux': directory '/home/usbmux' does not exist
45user 'haldaemon': directory '/var/run/hald' does not exist
46user 'pulse': directory '/var/run/pulse' does not exist
47user 'saned': directory '/home/saned' does not exist
48user 'hplip': directory '/var/run/hplip' does not exist
49pwck:无改变
50```
51
52
53<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->
\No newline at end of file