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 to hide the partition in grub booting?

761


What is the role of case sensitivity in affecting the way commands are used?

891


How many types of commands are there in linux?

804


tell me something about linux commands.

795


Explain about the command lynx?

898


How can we increase disk read performance in single command in Linux operating system?

926


What is build process?

764


How do I search bash history?

696


Explain the linux ‘cd’ command options along with the description?

722


What is tty in linux process?

741


What is a make target?

765


What is command grouping and how does it work?

891


What is bash linux?

782


Why makefile is used in linux?

764


What is $@ in makefile?

766