how to add linux user to group?

Answer Posted / ajay songare

linux create a Two type of Group thare are:-
1.primary group represent g
2.secondary group represent G

# useradd -g groupname username
# useradd -G groupname username

usercreate and after that Add group

# usermod -g groupname username
# usermod -G groupname username

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is devops linux?

538


How do you create a file in linux?

502


What is sudo bash command?

554


What is difference between egrep and grep?

519


What is kill 9 in linux?

581






How do you open a command prompt when issuing a command?

562


What is kill command?

512


What is the use of finger command in linux?

522


Explain about lpr filename?

608


What does umask 022 mean?

631


can any one send me one project on linux ...?

2362


How do you sort cpu in top command?

547


What is linux load average?

608


What is netstat command in linux?

580


Explain command grouping in linux?

559