commands regarding the adding of users into groups n
different options with useradd...?

Answers were Sorted based on User's Feedback



commands regarding the adding of users into groups n different options with useradd...?..

Answer / ksagarpankaj

usermod -G groupname username

Is This Answer Correct ?    11 Yes 1 No

commands regarding the adding of users into groups n different options with useradd...?..

Answer / guest

useradd -g groupname username

Is This Answer Correct ?    5 Yes 2 No

commands regarding the adding of users into groups n different options with useradd...?..

Answer / raj kumar yadav

vi /etc/group

and set the user name in the same group line where we want
to add user

Is This Answer Correct ?    1 Yes 0 No

commands regarding the adding of users into groups n different options with useradd...?..

Answer / susheel narayan singh

If user is susheel and groupe name is n
then

#useradd -G n susheel

Is This Answer Correct ?    0 Yes 0 No

commands regarding the adding of users into groups n different options with useradd...?..

Answer / raj kishor

Two ways are there:
1.To add as primary group
user:tom group:harry

useradd -g harry tom(harry will be the primary group of tom)

2.To add secondary grup

useradd -G harry tom (now tom's seconday group is hary).

3.To add to the earlier secondary group of tom

useradd -aG harry tom (This appends harry to the secondary
group)

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Linux AllOther Interview Questions

How to findout, if the user is local user or NIS user in the Linux (RHEL)?

1 Answers  


Friends, I don't have enough free space in root directory. but in home directory I have 40gb free. So I can not install anything in root directory (which occupies more space) Please suggest me If there is any possibility to increase the root directory size by minimising the home directory's.

3 Answers  


How to Create NIS Server And NIS Client? Explain With Example?

1 Answers   Cisco,


How can i recover the linux system after it was crashed by step by step process..

3 Answers   IBM,


what is the difference between semaphore, mutex & spinlock?????

1 Answers   Patni,






What text filter can you use to display a binary file in octal numbers?

1 Answers  


How to build new filesystem ? and what is irig file system?

3 Answers  


there are many IPC mechanisms available in Linux ? Which one is best to use and when ?

1 Answers   Broadcom,


what is NIS Server...?

2 Answers   IBM,


In how many ways linux can be installed n explain th steps involved in installation in any of the method..?

1 Answers   IBM,


plz mention some interesting problems you faced and how you solved it?

0 Answers  


What is LILO?

11 Answers   Cisco,


Categories