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 / vishal

Command is useradd UserName
Option -g ( For Primary Group)
-G ( For Seconday Group)

Is This Answer Correct ?    25 Yes 1 No

how to add linux user to group?..

Answer / anoop

useradd -g group_name user_name (for primary group)
useradd -G group_name user_name (For secondard group)

Is This Answer Correct ?    22 Yes 4 No

how to add linux user to group?..

Answer / d.veera

gpasswd -g username groupname

or

usermod -G groupname username

Is This Answer Correct ?    16 Yes 3 No

how to add linux user to group?..

Answer / vinayak

Second answer is wrong please use blow mentioned commond
usermod -g
usermod -G for secondary group
gpasswd -a

Is This Answer Correct ?    6 Yes 0 No

how to add linux user to group?..

Answer / §aikiran

the command used to add linux user to group is
#usermod -G groupname

Is This Answer Correct ?    5 Yes 0 No

how to add linux user to group?..

Answer / amit kumar ghosh

There are 2 types group in linux system.
1.primary
2.secondary
to add user to primary.
# useradd -g groupname username

to add user to secondary.
#useradd -G groupname username.

Is This Answer Correct ?    4 Yes 1 No

how to add linux user to group?..

Answer / §aikiran

Sorry, this is da correct command
the command used to add linux user to group is
#usermod -G groupname username

Is This Answer Correct ?    4 Yes 2 No

how to add linux user to group?..

Answer / ganesan

# usermod -g groupname username(for Primary Group)
# usermod -G groupname username(for Secondary Group)

Is This Answer Correct ?    2 Yes 0 No

how to add linux user to group?..

Answer / sudhakar.g

In /etc/group add the linux user( The user must be existin
linux box)

Is This Answer Correct ?    1 Yes 0 No

how to add linux user to group?..

Answer / ajay songare

New User Add to Grop
# username -g groupname username(for Primary Group)
# useradd -G groupname username(for Secondary Group)

Old User Add To Grop
# usermod -g groupname username(for Primary Group)
# usermod -G groupname username(for Secondary Group)

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Linux Commands Interview Questions

You wish to print the file vacations with 60 lines to a page. Which of the following commands will accomplish this?

0 Answers  


Explain the linux ‘cd’ command options along with the description?

0 Answers  


How did you do the Health check in Linux?

1 Answers   Mind Tree,


What command should you use to check your file system?

0 Answers  


What can you type at a command line to determine which shell you are using?

6 Answers   Tech Mahindra,


What is command to check ports running/used over local machine

0 Answers  


What does top do in linux?

0 Answers  


What is finger in networking?

0 Answers  


How to root mirror in linux?

0 Answers  


What is the makefile in c?

0 Answers  


What does umask 022 mean?

0 Answers  


What is tty in linux process?

0 Answers  


Categories