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

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

migrated from Sep 8 '12 at 19:16

This question came from our site for professional and enthusiast programmers.

1 Answer 1

Was the user already there? Anyway, just run

adduser myuser upperdevs
share|improve this answer
The user already exists. –  Defensor Sep 8 '12 at 7:20

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.