Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Anyway to allow root to 'sqlplus / as sysdba'??
yong321_at_yahoo.com wrote:
> Rhugga wrote:
>
>>Denying root access was hard-coded in oracle 7.x/8x/9.x but I thought I
There is nothing hard-coded about root and SYSDBA. You are simply incorrectly using some basic Unix (in my example, RH Linux) functionality.
Note what happens when root has gid=0 and is a member of the dba group:
% id
uid=0(root) gid=0(root) groups=0(root),[...],101(dba)
% sqlplus "/ as sysdba"
SQL*Plus: Release 9.2.0.6.0 - Production on Sun Nov 27 13:18:58 2005
ERROR:
ORA-01031: insufficient privileges
Now note what happens when root has a gid=101(dba).
% newgrp dba [initiates new login shell]
% id
uid=0(root) gid=101(dba) groups=0(root),[...],101(dba)
% sqlplus "/ as sysdba"
SQL*Plus: Release 9.2.0.6.0 - Production on Sun Nov 27 13:19:24 2005
Connected to an idle instance.
Having demonstrated the possibility, I concur completely with everyone else that there should be no legitimate business need to do this.
-Mark Bole Received on Sun Nov 27 2005 - 15:34:25 CST
![]() |
![]() |