Restart required to apply new group

I added my user to the group qemu using sudo usermod -aG qemu myuser and then I logged off and logged in again. AFAIK that would be enough to the new group reflect on the id command output, but I had to reboot my computer for my user to me assigned to the new group.
Is that a bug, a change of behavior or am I crazy, and logoff/login was never enough?

I expect that to work. It would appear that you did not fully logout?
Which desktop environment are you using?

1 Like

Gnome. What do you mean by not fully logged out? I logged out using the menu at the top right corner

There must be some leftover processes:

loginctl user-status ${USER}
pgrep -a -u ${USER}

You need to terminate them:

loginctl terminate-user ${USER}
pkill -u ${USER}
2 Likes