This commit is contained in:
fofolee
2019-04-21 11:50:48 +08:00
parent 359d29ee0b
commit 38dcd51d8a
6901 changed files with 258583 additions and 2326828 deletions

View File

@@ -1,13 +1,13 @@
<h1 id="pwconv">pwconv</h1>
<p>用来开启用户的投影密码</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>pwconv命令</strong> 用来开启用户的投影密码。Linux系统里的用户和群组密码分别存放在名称为passwd和group的文件中 这两个文件位于<code>/etc</code>目录下。因系统运作所需,任何人都得以读取它们,造成安全上的破绽。投影密码将文件内的密码改存在<code>/etc</code>目录下的shadow和gshadow文件内只允许系统管理者读取同时把原密码置换为“x”字符有效的强化了系统的安全性。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">pwconv</code></pre>
<h3 id="实例">实例</h3>
<pre><code class="language-bash">cat /etc/passwd | grep test
test:x:3001:3001::/home/test:/bin/sh</code></pre>
<p>此时可以发现密码段是x</p>
<pre><code class="language-bash">cat /etc/shadow | grep test
test:$6$nYOEWamm$bz07nlv/.RgJufb3FAqJJeULfwybzgxmrWqbk7O4vI0KsT6N.ujrh6dDIUcAJdfjksyuyAFDPIngZeD3cgcf.0:15022:0:99999:7:::</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->
<h1 id="pwconv">pwconv</h1>
<p>用来开启用户的投影密码</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>pwconv命令</strong> 用来开启用户的投影密码。Linux系统里的用户和群组密码分别存放在名称为passwd和group的文件中 这两个文件位于<code>/etc</code>目录下。因系统运作所需,任何人都得以读取它们,造成安全上的破绽。投影密码将文件内的密码改存在<code>/etc</code>目录下的shadow和gshadow文件内只允许系统管理者读取同时把原密码置换为“x”字符有效的强化了系统的安全性。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">pwconv</code></pre>
<h3 id="实例">实例</h3>
<pre><code class="language-bash">cat /etc/passwd | grep test
test:x:3001:3001::/home/test:/bin/sh</code></pre>
<p>此时可以发现密码段是x</p>
<pre><code class="language-bash">cat /etc/shadow | grep test
test:$6$nYOEWamm$bz07nlv/.RgJufb3FAqJJeULfwybzgxmrWqbk7O4vI0KsT6N.ujrh6dDIUcAJdfjksyuyAFDPIngZeD3cgcf.0:15022:0:99999:7:::</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->