2019-04-21 11:50:48 +08:00

36 lines
2.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<h1 id="pwck">pwck</h1>
<p>用来验证系统认证文件内容和格式的完整性</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>pwck命令</strong> 用来验证系统认证文件<code>/etc/passwd</code><code>/etc/shadow</code>的内容和格式的完整性。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">pwck(选项)(参数)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-q仅报告错误信息
-s以用户id排序文件“/etc/passwd”和“/etc/shadow”;
-r只读方式运行指令。</code></pre>
<h3 id="参数">参数</h3>
<ul>
<li>密码文件:指定密码文件的路径;</li>
<li>影子文件:指定影子文件的路径。</li>
</ul>
<h3 id="实例">实例</h3>
<pre><code class="language-bash">pwck /etc/passwd
user &#39;lp&#39;: directory &#39;/var/spool/lpd&#39; does not exist
user &#39;news&#39;: directory &#39;/var/spool/news&#39; does not exist
user &#39;uucp&#39;: directory &#39;/var/spool/uucp&#39; does not exist
user &#39;www-data&#39;: directory &#39;/var/www&#39; does not exist
user &#39;list&#39;: directory &#39;/var/list&#39; does not exist
user &#39;irc&#39;: directory &#39;/var/run/ircd&#39; does not exist
user &#39;gnats&#39;: directory &#39;/var/lib/gnats&#39; does not exist
user &#39;nobody&#39;: directory &#39;/nonexistent&#39; does not exist
user &#39;syslog&#39;: directory &#39;/home/syslog&#39; does not exist
user &#39;couchdb&#39;: directory &#39;/var/lib/couchdb&#39; does not exist
user &#39;speech-dispatcher&#39;: directory &#39;/var/run/speech-dispatcher&#39; does not exist
user &#39;usbmux&#39;: directory &#39;/home/usbmux&#39; does not exist
user &#39;haldaemon&#39;: directory &#39;/var/run/hald&#39; does not exist
user &#39;pulse&#39;: directory &#39;/var/run/pulse&#39; does not exist
user &#39;saned&#39;: directory &#39;/home/saned&#39; does not exist
user &#39;hplip&#39;: directory &#39;/var/run/hplip&#39; does not exist
pwck无改变</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->