man: add note regarding editing user groups

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.
This commit is contained in:
ignapk 2020-06-19 08:29:59 +02:00 committed by Lennart Poettering
parent c4e585a36b
commit 8db8f99eb9
1 changed files with 2 additions and 1 deletions

View File

@ -268,7 +268,8 @@
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>