how to add linux user to group?

Answer Posted / amit kumar ghosh

There are 2 types group in linux system.
1.primary
2.secondary
to add user to primary.
# useradd -g groupname username

to add user to secondary.
#useradd -G groupname username.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I check my cpu cores?

743


What is cd in cmd?

707


What is iptables command in linux?

780


What are grep commands?

753


What is clang space engineers?

767


You are required to restore the file memo.ben. It was backed up in the tar file MyBackup.tar. Which command would you use to do it?

747


What is the use of ls command?

762


What is nslookup command?

746


How is grep so fast?

753


Who command in linux?

715


How do you create a text file in linux?

811


What signal is ctrl c?

705


What is the makefile in c?

763


Which command puts a script to sleep untill a signal is recieved?

845


What is $@ in bash?

761