Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how to add linux user to group?

Answers were Sorted based on User's Feedback



how to add linux user to group?..

Answer / dk

useradd -g (Groupname-g1) (Username-u1)
Ex:
#useradd -g g1 u1

Is This Answer Correct ?    3 Yes 3 No

how to add linux user to group?..

Answer / ron

useradd -g primary_group -G secondary_group username
passwd password

Is This Answer Correct ?    1 Yes 1 No

how to add linux user to group?..

Answer / pramod kumar mohapatra

gpasswd -M username grpupname

Is This Answer Correct ?    0 Yes 0 No

how to add linux user to group?..

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

how to add linux user to group?..

Answer / ayjaz khan

by the command

#groupadd <groupname>

Is This Answer Correct ?    10 Yes 11 No

how to add linux user to group?..

Answer / v.balaviswanathan

groupadd EXAMPLE

useradd -G EXAMPLE <username>

Is This Answer Correct ?    1 Yes 2 No

how to add linux user to group?..

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

how to add linux user to group?..

Answer / d.veera

command is useradd username

Is This Answer Correct ?    9 Yes 15 No

Post New Answer

More Linux Commands Interview Questions

What is the export command used for?

0 Answers  


if i run ls command it will show me the junk output what is problem and how to resolve it

2 Answers   BPO,


what is snmp and for what purpose we are using in linux

4 Answers  


What is build process?

0 Answers  


How do I run bash on windows?

0 Answers  


What would you do when all the processess hangs and there is no other option in unix?

3 Answers   HP,


Why makefile is used in linux?

0 Answers  


What does chmod 755 do?

0 Answers  


what is linux utilities and editor

4 Answers   Oracle, Wipro,


What is the makefile in c?

0 Answers  


What is sudo bash command?

0 Answers  


what is a command to display top 10 users who are using Huge Space?

3 Answers   IBM, TNS,


Categories