Adding the user to a new group doesn't take effect on logout and back in

Bug #1771308 reported by Will Cooke
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gdm3 (Ubuntu)
New
Low
Unassigned

Bug Description

Steps to reproduce:

Log in to a GNOME session
Use adduser to add yourself to an existing group
Log out and back in
Open a terminal, run "groups" and notice that your user isn't in the new group.
Reboot and log in, and you user is now in the group.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

As far back as I remember this has been the case...

I think it's an OS feature that the currently running process does not inherit the new group list from /etc/group. It's only when the process starts that the group list is read.

I'm not sure this is a bug, but it's really about the state of the process. So it's a kernel issue if at all.

affects: gdm3 (Ubuntu) → linux (Ubuntu)
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1771308

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Sebastien Bacher (seb128) wrote :

Daniel, what do you mean by "running process"? The steps involve login out and back in, so starting a new session, group changes should be active on a new login no?

affects: linux (Ubuntu) → gdm3 (Ubuntu)
Changed in gdm3 (Ubuntu):
status: Incomplete → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

By "running process" I mean any process.

But you're right; I misread "doesn't take effect on logout" as "doesn't take effect until logout".

One should indeed reasonably expect group changes to apply after the next login.

Changed in gdm3 (Ubuntu):
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.