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

what is NIS Server...?

2 Answers   IBM,


Who owns the data dictionary?

2 Answers  


What is the name and path of the main system log?

3 Answers  


How does the boot process[init levels] work on Linux? How is it different from Solaris?

3 Answers  


what is difference between  TFTP abd FTP?

0 Answers  






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

5 Answers   IBM,


I have accidently deleted my fstab... how do i recover/ regenerate the file?????? in rescue mode i cannot create a new file since the filesystem is readonly and could not mount in readwrite mode ?????????

6 Answers   IBM,


1 which file contains information about os wether it's 32 bit or 64 bit os 2 difference between logical block and physical block?? 3 what is the size of logical block and physical block?? 4 daemon for nfs on client end as well as server end??? 5 how to confirm from client end about nfs server sharing?? 6 what contains information about file and directory creating time or modification time??

4 Answers   Oracle,


What are RPM?s, what do they offer?

2 Answers  


What are main anti-spam features available in sendmail?

1 Answers   CSC,


how can i make an user to nologin without locking the account for the user

7 Answers   CSS, CSS Corp,


My Linux server in the two lan card one lan card is ok working but second lan card after restart daily lan card deactivate and then manual activate then properly working but after restart repeat this problem.(Fedora O.S.) Pls tell me solved this problem.

4 Answers  


Categories