On 6/28/22 17:14, Alex wrote:
I've added my user to multiple groups in /etc/group, but running "id"
only shows the primary group.
$ id
uid=1003(alex) gid=1003(alex) groups=1003(alex)
This user belongs to a number of other groups.
$ grep ^alex /etc/group
alex:x:1003:group1,group2
You're doing that wrong. You just added non-existent users to your
"alex" group. You should probably use the "usermod" command instead of
directly editing the file.
usermod -a -G group1 alex
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure