Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.