how to add linux user to group?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Suppose I lost a root password and I need to give it, I treid to change it through single usermode even though I am not get a password, then what is the otherprocedure to give a root password?

532


Brief about the command kill PID?

590


Why do we use cmake?

528


What is tail command in linux?

538


You need to see the last fifteen lines of the files dog, cat and horse. What command should you use?

530






Which of the commands will replace all occurrences of the word rate with the word speed in the file racing?

490


What is du command in linux?

548


What does sh do in linux?

503


What is know about grep commands?

547


What does in makefile do?

560


What will happen when a system call is encountered in a user program?

1504


What is the use of finger command in linux?

515


What is dos and its commands?

608


What is the difference between rmdir and rm r?

618


What are the options of wc command?

544