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