useradd: add -F option for updating /etc/sub[ig]id for system accounts

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
This commit is contained in:
Masatake YAMATO
2022-07-20 11:17:16 +09:00
committed by Iker Pedrosa
parent fb96d3f84d
commit 3f7a72e967
2 changed files with 36 additions and 3 deletions

View File

@@ -213,6 +213,18 @@
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<option>-F</option>, <option>--add-subids-for-system</option>
</term>
<listitem>
<para>
Update <filename>/etc/subuid</filename> and <filename>
/etc/subgid</filename> even when creating a system account
with <option>-r</option> option.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<option>-g</option>, <option>--gid</option>&nbsp;<replaceable>GROUP</replaceable>
@@ -466,7 +478,9 @@
</para>
<para>
Note that this option will not update <filename>/etc/subuid
</filename> and <filename>/etc/subgid</filename>.
</filename> and <filename>/etc/subgid</filename>. You have to
specify the <option>-F</option> options if you want to update
the files for a system account to be created.
</para>
</listitem>
</varlistentry>