Page MenuHomePhabricator

Unable to add user to group in debian stretch instance
Closed, ResolvedPublic

Description

I created a new debian stretch instance today (Nov 6), installed docker-engine, and ran:

adduser ebernhardson docker

Checked id after logging out and logging back in both immediately and after more than 30 minutes. In both cases it reports:

uid=3088(ebernhardson) gid=500(wikidev) groups=500(wikidev),1003(wmf),50062(project-bastion),50068(project-editor-engagement),50090(project-analytics),50120(project-deployment-prep),50174(project-integration),50276(project-search),50380(project-tools),52308(project-phabricator),52471(project-shiny-r),52857(project-discourse),53176(project-mwreview)

/etc/group on the other hand appears to have been adjusted appropriately:

docker:x:498:ebernhardson

For reference the appropriate line in nsswitch.conf defaulted to:

group:          files ldap

I had expected logging out and logging back in would put my user in this group, but it doesn't seem to have worked. I checked wikitech docs but was unable to find a solution there.

After

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 6 2017, 5:54 PM
Paladox added a subscriber: Paladox.Nov 6 2017, 6:21 PM
bd808 edited projects, added Cloud-VPS; removed Cloud-Services.Nov 6 2017, 6:34 PM
JHedden closed this task as Resolved.Jul 18 2019, 7:50 PM
JHedden claimed this task.
JHedden added a subscriber: JHedden.

I've confirmed that this process works as expected on the recent stretch image. If you're still having an issue adding users to local group please let us know.