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

What are system commands?

1145


Main configuration file and command used for NFS enabling exported directories and deamons?

1089


What language is clang written in?

950


Where can I find bash in linux?

1035


What does pwd mean in linux?

1160


What does uname command do?

1231


What does umask 077 mean?

1035


How do you run a command for a limited time?

1060


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

1030


What is whois command?

1137


How do I check storage on linux?

1078


How do I run a command in linux?

1132


How do I list all processes in linux?

1033


What are two functions the move mv command can carry out?

1121


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

1062