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

Explain about system and user utilities?

970


What is finger in networking?

979


What is command line in unix?

1039


Why is unix used?

984


How can you check the amount of lines in a file?

990


How can I type in cmd?

928


Who unix commands?

1165


What is tty name?

945


How many types of dos commands are there?

1137


How can you copy lines into the buffer in command mode?

1084


What does p mean linux?

991


What are different command to check ram, process and hdd of linux machine?

1051


How to root mirror in linux?

1070


What is du command in linux?

1119


What the command used for list the contents of your home directory, current directory and all subdirectories?

959