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

19 lines
1.0 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="groupadd">groupadd</h1>
<p>用于创建一个新的工作组</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>groupadd命令</strong> 用于创建一个新的工作组,新工作组的信息将被添加到系统文件中。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">groupadd(选项)(参数)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-g指定新建工作组的id
-r创建系统工作组系统工作组的组ID小于500
-K覆盖配置文件“/ect/login.defs”
-o允许添加组ID号不唯一的工作组。</code></pre>
<h3 id="参数">参数</h3>
<p>组名:指定新建工作组的组名。</p>
<h3 id="实例">实例</h3>
<p>建立一个新组并设置组ID加入系统</p>
<pre><code class="language-bash">groupadd -g 344 jsdigname</code></pre>
<p>此时在<code>/etc/passwd</code>文件中产生一个组IDGID是344的项目。</p>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->