Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to add linux user to group?

Answer Posted / shanu

 gpasswd
Usage: gpasswd [-r|-R] group
       gpasswd [-a user] group
       gpasswd [-d user] group
       gpasswd [-A user,...] [-M user,...] group
#gpasswd -a user1 dba
Adding user user1 to group dba
#gpasswd -M user2,user3 dba //multiple users

or

#usermod -g primary_grp username
#usermod -g dba user1

#usermod -G sec_grp username
#usermod -G oper,oinstall oracle

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command is used to find what is in your home directory?

940


Information technology is widely used in

1834


How do I know my shell?

915


What is the command to see on which port which service is running? And what is the difference between /etc/services file and net stat command?

932


How do I check cores in linux?

1012


What does the ps command do in linux?

951


What is clang format?

941


If the programmer wishes to execute an instruction at the specified time. Which command is used?

1373


What is p in mkdir?

943


How do I run bash on windows?

967


What is the command to check cpu speed in linux?

963


what do know about commands?

1075


How to root mirror in linux?

999


Explain shift command of linux?

1041


Is makefile a shell script?

927