Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

when adding some group users running Gnome

gpasswd -a user group

I am unable to see the changes running


Is there a way to update the environment without the need to restart Gnome?


share|improve this question

1 Answer 1

up vote 0 down vote accepted

If you just need the terminal to reflect the updated group membership, it should be sufficient to use su to "switch" to the same user e.g.

$ id -Gn
steeldriver adm dialout sudo staff sambashare
$ sudo gpasswd --add steeldriver lpadmin
Adding user steeldriver to group lpadmin
$ id -Gn
steeldriver adm dialout sudo staff sambashare

(still shows the old groups), but then

$ su - steeldriver
$ id -Gn
steeldriver adm dialout sudo staff lpadmin sambashare

If you need the changes to be reflected throughout the desktop environment then yes, you will need to log out and in to a new session.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.