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 recover a deleted file in linux ?

5 Answers  


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

3 Answers  


What utility can you use to automate rotation of logs?

2 Answers  


Hi all Could u plz tell me how I can get UNIX/Linux Certification

2 Answers   Accenture,


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,






why you are using nis server

2 Answers  


how to recollect root password

3 Answers   Google,


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

3 Answers  


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

3 Answers  


What is the minimum number of partitions you need to install Linux?

30 Answers  


User unable to login in server then how can u troubleshooting it? Example: server at Bangalore. in that server two users try to login in server. 1st user able to login. but second user unable to login so how can troubleshoot it ?

5 Answers   Oracle,


What is LILO?

11 Answers   Cisco,


Categories