uTools-Manuals/docs/linux/pwunconv.html
2019-04-21 11:50:48 +08:00

15 lines
908 B
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="pwunconv">pwunconv</h1>
<p>用来关闭用户的投影密码</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>pwunconv命令</strong> 与pwconv功能相反用来关闭用户的投影密码。它会把密码从shadow文件内重回存到passwd文件里。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">pwunconv</code></pre>
<h3 id="实例">实例</h3>
<pre><code class="language-bash">pwunconv //关闭影子密码
cat /etc/passwd | grep test //发现密码已经在passwd文件中了
test:$6$nYOEWamm$bz07nlv/.RgJufb3FAqJJeULfwybzgxmrWqbk7O4vI0KsT6N.ujrh6dDIUcAJdfjksyuyAFDPIngZeD3cgcf.0:3001:3001::/home/test:/bin/sh
ls /etc/shadow //查看影子文件,提示没有这个文件或目录
ls: cannot access /etc/shadow: No such file or directory</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->