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

If none of the more specific forums is the right place to ask

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

Postby spacebug » 2018-01-06 19:10

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.
spacebug
 
Posts: 2
Joined: 2017-12-31 11:35

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

Postby bryanmc » 2018-01-07 14:38

Why not # usermod -aG sudo <username>
bryanmc
 
Posts: 76
Joined: 2016-11-18 12:21


Return to General Questions

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable