Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

GDM does not update a user group membership on logout/login

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
spacebug
Posts: 2
Joined: 2017-12-31 11:35

GDM does not update a user group membership on logout/login

#1 Post by spacebug »

I'm running GNOME in Debian Stretch. This uses GDM by default.

If I want to add my user to new groups (for example sudo) I run

Code: Select all

adduser <myuser> sudo
in a console.

After this I can typ

Code: Select all

id <myuser>
and see that I have been added to the groups.

But only typing

Code: Select all

id
does not show the new membership. (This is because you have to logout and in again to update the membership for any shell).
The thing is, this does not work with GDM!
Logout and in again does not show the new group membership when issuing command

Code: Select all

id
I have tried restarting GDM.
I have also tried completely killing GDM and starting it again.
Nothing works. The only thing that really works is to reboot the computer.

I have not tried any other login managers so I don't know if this is a design bug/miss or maybe only a but in GDM.

bryanmc
Posts: 122
Joined: 2016-11-18 12:21
Has thanked: 2 times

Re: GDM does not update a user group membership on logout/lo

#2 Post by bryanmc »

Why not # usermod -aG sudo <username>

Post Reply