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

As a system admin i want to know some things what are the troubleshooting issues we are facing frequently and what are the tickets will be raised.

0 Answers   Ondot,


What is the difference between semaphore and spinlock?

1 Answers  


What command can you use to review boot messages?

6 Answers  


how can i create samba server in fedora 9.0 ? and domain/LDAP controller! clilent side is windows pc .?

0 Answers   Wipro,


Which directory is closer to the top of the file system tree, parent directory or current directory?

3 Answers  


What utility can you use to automate rotation of logs?

2 Answers  


what is difference between inetd and xinetd

2 Answers  


Who owns the data dictionary?

2 Answers  


what is the difference between fork and thread ? and parent and child process in fork system call?

3 Answers   Satyam,


expalin the process of kickstart installation?

1 Answers   HCL, IBM,


I want to configure production interface and manage interface, how to configure both interfaces in Linux. please post the answers

0 Answers  


1.how to know cpu information on linux system? 2.how to hardware information on linux system? 3.if we add the new user what are the files will be changed? 4.how to remove the cache in squid server ? 5.how to know ur useing 32bit r 64 bit os ? 6.at booting process at init level which file it is reads? 7.if ur system performance is show what can u do ? 8.if ur file system corrupted what can u do ? fsck also not working? 9.how did u do health check in linux? 10.how did u check system performance in linux? 11.how did u create NIS server? give me the steps ? 12.how did u add a packages in linux ? 13.how did u know depended packages for any package useing rpm how u know? 14.how did you monitor cronjobs in linux ? 15.what is the use of logroted? and how did u do ? 16.port no is already in use so what canu do for that in http? 17.how to samba configurated are not ? there are any command for that ? 18.how to create a NTP Client using commands ? not as graphical... 19.how to know how many members are using any service? like ftp are any other services? 20.what is the differences between cmp,diff,comm commands?

3 Answers  


Categories