how to add linux user to group?
Answers were Sorted based on User's Feedback
Answer / ron
useradd -g primary_group -G secondary_group username
passwd password
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / shanu
gpasswd
Usage: gpasswd [-r|-R] group
gpasswd [-a user] group
gpasswd [-d user] group
gpasswd [-A user,...] [-M user,...] group
#gpasswd -a user1 dba
Adding user user1 to group dba
#gpasswd -M user2,user3 dba //multiple users
or
#usermod -g primary_grp username
#usermod -g dba user1
#usermod -G sec_grp username
#usermod -G oper,oinstall oracle
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / v.balaviswanathan
groupadd EXAMPLE
useradd -G EXAMPLE <username>
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / ajay songare
linux create a Two type of Group thare are:-
1.primary group represent g
2.secondary group represent G
# useradd -g groupname username
# useradd -G groupname username
usercreate and after that Add group
# usermod -g groupname username
# usermod -G groupname username
| Is This Answer Correct ? | 1 Yes | 2 No |
What is type command in linux?
What are the commands used in command prompt?
What are the 7 types of sentences?
How many commands are there in linux?
What is ll command in unix?
If you have saved a file in linux. Later you wish to rename that file, what command is designed for it?
what is emacs editor and feature........???????????????????????????
How use more command in linux?
What command you execute to display the last five commands you have entered?
What is iptables command in linux?
Explain about document formatting?
A file which is not deleted by normal user and also root (using rm), for that type of file how we delete it?