Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: privileged users on Directory Objects

Re: privileged users on Directory Objects

From: Andy Hassall <andy_at_andyh.co.uk>
Date: Sat, 26 May 2007 00:29:01 +0100
Message-ID: <vure53hq43qa1dlivsk5i9u4fk3fkq70g5@4ax.com>


On 24 May 2007 13:59:45 -0700, Valentin Minzatu <valentinminzatu_at_yahoo.com> wrote:

>On May 24, 4:41 pm, Pedro Lopes <pedro.lo..._at_netvisao.pt> wrote:
>> Hi all,
>> how can I check the users that have privileges on a certain Directory
>> (object) ?
>>
>> thanks,
>> pedro
>
>This will give both users and roles:
>
>SELECT grantee
> FROM dba_tab_privs
> WHERE table_name = <directory_name>

 You'd need more filters on that, such as "OWNER = 'SYS'" (which owns directory objects), and the READ and/or WRITE privileges (since you can have other objects with the same name, but they'll have different privileges like SELECT).

-- 
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Received on Fri May 25 2007 - 18:29:01 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US