]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: add note regarding editing user groups
authorignapk <59512193+ignapk@users.noreply.github.com>
Fri, 19 Jun 2020 06:29:59 +0000 (08:29 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 22 Jun 2020 11:18:26 +0000 (13:18 +0200)
Currently the manual doesn't clearly say whether `homectl update username -G group` will append the group to the user, or overwrite the list and remove user from the groups that aren't specified.

Fix this by updating the manual, basing the change on the usermod manual.

man/homectl.xml

index 14877a0cde047e24265139e170443e624e671c8a..3a4c6e5f5b1de0bd6ac8df5b0603e03ddebfcfea 100644 (file)
         independently, for example with <citerefentry
         project='man-pages'><refentrytitle>groupadd</refentrytitle><manvolnum>8</manvolnum></citerefentry>. If
         non-existent groups that are listed there are ignored. This option may be used more than once, in
-        which case all specified group lists are combined.</para></listitem>
+        which case all specified group lists are combined. If the user is currently a member of a group
+        which is not listed, the user will be removed from the group.</para></listitem>
       </varlistentry>
 
       <varlistentry>