Can someone help in creating a group and user.
syntax to create a Group called Members.
syntax to create a user called AAAA and place in to the Group Members.
Thanks for your help in Advance.
Can someone help in creating a group and user.
syntax to create a Group called Members.
syntax to create a user called AAAA and place in to the Group Members.
Thanks for your help in Advance.
# capital letters in groups may not be allowed on some systems
groupadd members
# capital letters in usernames may not be allowed on some systems
# the -m, on linux, tells it to create /home/aaaa for it. Leave it off
# if you don't want that.
useradd -m -g members aaaa
Thanks Corona688.
How can i set the password for the user aaaa
---------- Post updated at 10:33 PM ---------- Previous update was at 10:06 PM ----------
I was able to set the password with command passwd.
Now i am trying to add the existing user to the existing group.
user bbbb exists and member of bbb1, now i would like to add the existing user bbbb to the existing group members using cmd: useradd -g members bbbb.
getting useradd:user bbbb exists.
useradd adds users. if the user already exists, naturally it won't be able to create it again.
usermod -a -G newgroup user
The -a tells it to add the group instead of overwriting the previous group info.