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

I added a user using useradd

useradd -g upperdevs myuser

But when I do an id check I didn't see the upperdevs group.

id myuser
#uid=1000(myuser) gid=1000(myuser) groups=1000(myuser),27(sudo)

Probably this was the issue why I can't write to certain_dir, by doing ls -l:

drwxrwxr-x 2 root upperdevs 4096 Sep  8 13:35 certain_dir

Anything I'm doing wrong?

share|improve this question
up vote 2 down vote accepted

You are probably still logged in.

Once you change a user's groups, that user needs to log out and back in for the change to take effect.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.