I have some issues with permission from various apps (such as accessing serial ports, despite being the dialout group, or contacting to Docker daemon, despite being in the docker group -- I think) and I need clarifications here.
When I run the id command, I get this:
uid=1000(eudoxos) gid=1000(eudoxos) groups=1000(eudoxos)
I understand that Debian/Ubuntu create separate primary group for each user (gid 1000).
When I look inside /etc/group, I see my username in a number of other groups (those are secondary groups, right?), such as adm, sudo, audio, plugdev, fuse, docker, dialout and so on). The id command should report those, as per GID, current, primary, supplementary, effective and real group IDs? but I don't see anything like that in the output. What am I missing? Is something misconfigured? (I did login anew after changing groups already)
EDIT: more information
$ grep eudoxos /etc/group
adm:x:4:eudoxos,syslog
dialout:x:20:eudoxos
cdrom:x:24:eudoxos
floppy:x:25:eudoxos
sudo:x:27:eudoxos
audio:x:29:eudoxos,pulse,timidity
dip:x:30:eudoxos
video:x:44:eudoxos
plugdev:x:46:eudoxos
eudoxos:x:1000:
fuse:x:104:eudoxos
lpadmin:x:111:eudoxos
admin:x:117:eudoxos
vboxusers:x:123:eudoxos
sambashare:x:129:eudoxos
pgrimaging:x:1003:eudoxos
docker:x:151:eudoxos
kvm:x:152:eudoxos
libvirt:x:153:eudoxos
and
$ grep group /etc/nsswitch.conf
group: compat systemd
netgroup: nis
grep eudoxos /etc/groupandgrep group /etc/nsswitch.confto your question.groupsalso do not show the groups?id -a?id -ashows the same asid(i.e.uid=1000(eudoxos) gid=1000(eudoxos) groups=1000(eudoxos)) andgroupsonly sayseudoxos. ...