Group membership reported by id vs. contents of /etc/group

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















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









share|improve this question
























  • Can you add the output of grep eudoxos /etc/group and grep group /etc/nsswitch.conf to your question.

    – Thomas
    Jan 27 at 14:01











  • added as edit :)

    – eudoxos
    Jan 27 at 14:16











  • Hm...strange. Should work. Which distribution and version are you running? Does groups also do not show the groups? id -a?

    – Thomas
    Jan 27 at 14:37











  • Ubuntu 18.04. id -a shows the same as id (i.e. uid=1000(eudoxos) gid=1000(eudoxos) groups=1000(eudoxos)) and groups only says eudoxos. ...

    – eudoxos
    Jan 27 at 14:39











  • Just tested in a 18.04 VM and no problems at all. Did configure something on your own? Are you somehow in a docker or snap environment?

    – Thomas
    Jan 27 at 14:46















0















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









share|improve this question
























  • Can you add the output of grep eudoxos /etc/group and grep group /etc/nsswitch.conf to your question.

    – Thomas
    Jan 27 at 14:01











  • added as edit :)

    – eudoxos
    Jan 27 at 14:16











  • Hm...strange. Should work. Which distribution and version are you running? Does groups also do not show the groups? id -a?

    – Thomas
    Jan 27 at 14:37











  • Ubuntu 18.04. id -a shows the same as id (i.e. uid=1000(eudoxos) gid=1000(eudoxos) groups=1000(eudoxos)) and groups only says eudoxos. ...

    – eudoxos
    Jan 27 at 14:39











  • Just tested in a 18.04 VM and no problems at all. Did configure something on your own? Are you somehow in a docker or snap environment?

    – Thomas
    Jan 27 at 14:46













0












0








0








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









share|improve this question
















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






users






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 27 at 14:16







eudoxos

















asked Jan 27 at 13:35









eudoxoseudoxos

466412




466412












  • Can you add the output of grep eudoxos /etc/group and grep group /etc/nsswitch.conf to your question.

    – Thomas
    Jan 27 at 14:01











  • added as edit :)

    – eudoxos
    Jan 27 at 14:16











  • Hm...strange. Should work. Which distribution and version are you running? Does groups also do not show the groups? id -a?

    – Thomas
    Jan 27 at 14:37











  • Ubuntu 18.04. id -a shows the same as id (i.e. uid=1000(eudoxos) gid=1000(eudoxos) groups=1000(eudoxos)) and groups only says eudoxos. ...

    – eudoxos
    Jan 27 at 14:39











  • Just tested in a 18.04 VM and no problems at all. Did configure something on your own? Are you somehow in a docker or snap environment?

    – Thomas
    Jan 27 at 14:46

















  • Can you add the output of grep eudoxos /etc/group and grep group /etc/nsswitch.conf to your question.

    – Thomas
    Jan 27 at 14:01











  • added as edit :)

    – eudoxos
    Jan 27 at 14:16











  • Hm...strange. Should work. Which distribution and version are you running? Does groups also do not show the groups? id -a?

    – Thomas
    Jan 27 at 14:37











  • Ubuntu 18.04. id -a shows the same as id (i.e. uid=1000(eudoxos) gid=1000(eudoxos) groups=1000(eudoxos)) and groups only says eudoxos. ...

    – eudoxos
    Jan 27 at 14:39











  • Just tested in a 18.04 VM and no problems at all. Did configure something on your own? Are you somehow in a docker or snap environment?

    – Thomas
    Jan 27 at 14:46
















Can you add the output of grep eudoxos /etc/group and grep group /etc/nsswitch.conf to your question.

– Thomas
Jan 27 at 14:01





Can you add the output of grep eudoxos /etc/group and grep group /etc/nsswitch.conf to your question.

– Thomas
Jan 27 at 14:01













added as edit :)

– eudoxos
Jan 27 at 14:16





added as edit :)

– eudoxos
Jan 27 at 14:16













Hm...strange. Should work. Which distribution and version are you running? Does groups also do not show the groups? id -a?

– Thomas
Jan 27 at 14:37





Hm...strange. Should work. Which distribution and version are you running? Does groups also do not show the groups? id -a?

– Thomas
Jan 27 at 14:37













Ubuntu 18.04. id -a shows the same as id (i.e. uid=1000(eudoxos) gid=1000(eudoxos) groups=1000(eudoxos)) and groups only says eudoxos. ...

– eudoxos
Jan 27 at 14:39





Ubuntu 18.04. id -a shows the same as id (i.e. uid=1000(eudoxos) gid=1000(eudoxos) groups=1000(eudoxos)) and groups only says eudoxos. ...

– eudoxos
Jan 27 at 14:39













Just tested in a 18.04 VM and no problems at all. Did configure something on your own? Are you somehow in a docker or snap environment?

– Thomas
Jan 27 at 14:46





Just tested in a 18.04 VM and no problems at all. Did configure something on your own? Are you somehow in a docker or snap environment?

– Thomas
Jan 27 at 14:46










0






active

oldest

votes











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f497016%2fgroup-membership-reported-by-id-vs-contents-of-etc-group%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f497016%2fgroup-membership-reported-by-id-vs-contents-of-etc-group%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown






Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?