dbTalk Databases Forums  

privileged users on Directory Objects

comp.databases.oracle.server comp.databases.oracle.server


Discuss privileged users on Directory Objects in the comp.databases.oracle.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Pedro Lopes
 
Posts: n/a

Default privileged users on Directory Objects - 05-24-2007 , 03:41 PM






Hi all,
how can I check the users that have privileges on a certain Directory
(object) ?

thanks,
pedro

Reply With Quote
  #2  
Old   
Valentin Minzatu
 
Posts: n/a

Default Re: privileged users on Directory Objects - 05-24-2007 , 03:59 PM






On May 24, 4:41 pm, Pedro Lopes <pedro.lo... (AT) netvisao (DOT) pt> wrote:
Quote:
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>



Reply With Quote
  #3  
Old   
Andy Hassall
 
Posts: n/a

Default Re: privileged users on Directory Objects - 05-25-2007 , 06:29 PM



On 24 May 2007 13:59:45 -0700, Valentin Minzatu <valentinminzatu (AT) yahoo (DOT) com>
wrote:

Quote:
On May 24, 4:41 pm, Pedro Lopes <pedro.lo... (AT) netvisao (DOT) 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 (AT) andyh (DOT) co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool


Reply With Quote
  #4  
Old   
hpuxrac
 
Posts: n/a

Default Re: privileged users on Directory Objects - 05-25-2007 , 06:33 PM



On May 25, 7:29 pm, Andy Hassall <a... (AT) andyh (DOT) co.uk> wrote:
Quote:
On 24 May 2007 13:59:45 -0700, Valentin Minzatu <valentinminz... (AT) yahoo (DOT) com
wrote:

On May 24, 4:41 pm, Pedro Lopes <pedro.lo... (AT) netvisao (DOT) 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 :: a... (AT) andyh (DOT) co.uk ::http://www.andyh.co.ukhttp://www.and....co.uk/space:: disk and FTP usage analysis tool
Make sure you take a look at what the init file or pfile setting is
for utl_file_dir



Reply With Quote
  #5  
Old   
DA Morgan
 
Posts: n/a

Default Re: privileged users on Directory Objects - 05-25-2007 , 07:24 PM



hpuxrac wrote:

Quote:
Make sure you take a look at what the init file or pfile setting is
for utl_file_dir
Unless working with an obsolete version of Oracle it is better to us
directory objects (www.psoug.org/reference/directories.html).
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
Reply




Thread Tools
Display Modes

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

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.