LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 03-30-2005, 03:14 PM   #1
ashley75
Member
 
Registered: Aug 2003
Posts: 231

Rep: Reputation: 30
add user to the group


I recently had two groups (oinstall and dba), how can I add the root user to these groups????


thanks
 
Old 03-30-2005, 03:15 PM   #2
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
/etc/groups
 
Old 03-30-2005, 03:22 PM   #3
ashley75
Member
 
Registered: Aug 2003
Posts: 231

Original Poster
Rep: Reputation: 30
I am there but how????
sorry I am new with Linux



...........
............
..........

piranha:x:60:
netdump:x:34:
oinstall:x:500:
dba:x:501racle
oper:x:502:


I am not sure how to add them in here???
 
Old 03-30-2005, 03:38 PM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
My question would be, why would you need to add the root user to these groups? root has access to everything no matter, so adding them to these groups unless its required by a service on the server or host, I don't see the point.

Though adding users to these groups would make more sense, to those who would need access to files and directories owned by the groups in question..

But to add users to these groups manually, you'd simply add them to each group.. like this:

Code:
piranha:x:60:
netdump:x:34:
oinstall:x:500:root
dba:x:501:oracle,root
oper:x:502:
 
Old 03-30-2005, 03:42 PM   #5
ashley75
Member
 
Registered: Aug 2003
Posts: 231

Original Poster
Rep: Reputation: 30
thanks,

the reason I add root to these group b/c I wrote a shell to startup/shutdown the database automatically for Oracle
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to list user in Linux box, add an user to a group! steady_lfcfan Linux - Newbie 12 01-27-2013 02:14 PM
how to add a user to a new group? emanresu Linux - Newbie 5 11-21-2005 09:18 AM
add user to group brandnewbie Linux - Newbie 3 08-08-2004 05:53 PM
how do i add user to a group jogurt666 Linux - General 2 04-02-2004 11:05 PM
how to add a user to a certain group? feetyouwell Linux - Software 2 01-13-2004 12:56 PM


All times are GMT -5. The time now is 03:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration