Re: Oracle permissions issue Oracle 9.2.0.7/Win 2003



Wally wrote:
Oracle 9.2.0.7
Windows 2003

We are going through a Certification and Accreditation process with
our databases. We are being dinged for grants that any schema owner is
giving on its objects to database roles. We were told that only the
SYSTEM user or a user with DBA privileges should grant the permissions
on any object to any role.

We have changed the process so that the user SYSTEM will log in and
grant the permissions but here is something we have noticed.

Lets say that the schema in question is SCOTT.
The table to grant SELECT permission on is the EMP table.
The role to grant permissions to is EMP_ACCESS_ROLE

1. We log in as SYSTEM and run the following statement.

GRANT SELECT on SCOTT.EMP to EMP_ACCESS_ROLE;

2. When we run

select * from DBA_TAB_PRIVS where table = 'EMP';

GRANTEE OWNER TABLE_NAME GRANTOR
PRIVILEGE
---------------------------------- ------------
------------------------ ----------------
------------------------------------
EMP_ACCESS_ROLE SCOTT EMP SCOTT SELECT

We see that the GRANTOR is still the schema owner SCOTT. So when the
database is scanned again we are still being dinged for the schema
owner granting permission on an object to a role.

-------

3. We then tried this (even though this is retarded and unnecessary
since SYSTEM has the SELECT permission to begin with)

GRANT SELECT ON SCOTT.EMP TO SYSTEM WITH GRANT OPTION;

4. We then log in as SYSTEM and grant the permission again.

GRANT SELECT on SCOTT.EMP to EMP_ACCESS_ROLE;

5. When we run

select * from DBA_TAB_PRIVS where table = 'EMP';

GRANTEE OWNER TABLE_NAME GRANTOR
PRIVILEGE
---------------------------------- ------------
------------------------ ----------------
------------------------------------
EMP_ACCESS_ROLE SCOTT EMP SYSTEM SELECT

We see that the GRANTOR is now SYSTEM. But now we are being dinged
that the SYSTEM user has unnecessary permissions on the SCOTT schema
that it does not need to have, and also that the schema owner SCOTT is
still logging in to give permissions to other users.
--------------

Has anyone else run into this problem of the schema owner showing up
as the GRANTOR even though SYSTEM granted the permission. What was
your work around ?


Thanks in advance.


Turn on auditing for GRANT statements in the database. Then when they ding you, you can pull up your audit trail and say "see....even though the Data Dictionary shows the grantor was SCOTT, it was in fact...SYSTEM".

But then this brings up another point to my mind...should this type of auditing be done on an individual basis? In that case, multiple DBAs should not be sharing the SYSTEM account. Rather, they should have their own accounts. That way, when you audit the GRANT commands, you can denote the actual individual who has performed the operation.

HTH,Brian

--
===================================================================

Brian Peasland
dba@xxxxxxxxxxxxxxxxxxx
http://www.peasland.net

Remove the "nospam." from the email address to email me.


"I can give it to you cheap, quick, and good.
Now pick two out of the three" - Unknown

--
Posted via a free Usenet account from http://www.teranews.com

.



Relevant Pages

  • RE: user permissions in a database as a whole or tables
    ... user permissions in a database as a whole or tables ... The way to give permissions to a user is a simple GRANT. ...
    (comp.databases.informix)
  • Re: user permissions in a database as a whole or tables
    ... like PDF better but that was not helping this time either. ... user permissions in a database as a whole or tables ... The way to give permissions to a user is a simple GRANT. ...
    (comp.databases.informix)
  • Re: SQL Server 2005 Stored Procedure security annoyances
    ... stored proecedure on a database wide level? ... GRANT EXECUTE ON SCHEMA::MySchema TO MyRole ... I am sure I will forget some SP's and probably forget to set the rights ... permissions because not all stored procedures are equal. ...
    (microsoft.public.sqlserver.security)
  • Oracle permissions issue Oracle 9.2.0.7/Win 2003
    ... giving on its objects to database roles. ... SYSTEM user or a user with DBA privileges should grant the permissions ... We see that the GRANTOR is still the schema owner SCOTT. ...
    (comp.databases.oracle.server)
  • Re: Relation of OS user to Informix database user
    ... I created two operating system users, say A and B, gave both GRANT CONNECT and GRANT RESOURCE permissions from the informix DBA user. ... When you created the database, was a MODE ANSI database, or a logged or an unlogged database. ... REVOKE SELECT ON TABLE T FROM B. This gave an error saying no record in ISAM and Unable to revoke permissions. ...
    (comp.databases.informix)