Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.