sudo addgroup


4 Answer(s)


Hi Tuhino

Please try
sudo groupadd

and see if that works
Thanks

1 Thanks, that worked in the sense that it did not give any error. how do I check the created group?
2. but now I cannot add user in that group as stated in the document (module2 - assignment 1; so I tried useradd instead of adduser
sudo useradd -g dezyre_group -u dezyre_user.
If said invalid user, is there any way to check the valid users

Hi Tuhino

In the newer version of Ubuntu - please use this command to add user to the group

CREATE GROUP
sudo groupadd dezyre_group

ADD USER
sudo useradd -G dezyre_group tom

LIST USERS
getent group dezyre_group

Hope this helps
Thanks

Hello Dezyre,

Could you update the document with the variation for future use.

Thanks,
Sharon