LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   add user to the group (https://www.linuxquestions.org/questions/linux-general-1/add-user-to-the-group-307902/)

ashley75 03-30-2005 02:14 PM

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


thanks

Technoslave 03-30-2005 02:15 PM

/etc/groups

ashley75 03-30-2005 02:22 PM

I am there but how????
sorry I am new with Linux



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

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


I am not sure how to add them in here???

trickykid 03-30-2005 02:38 PM

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:


ashley75 03-30-2005 02:42 PM

thanks,

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


All times are GMT -5. The time now is 11:05 PM.