IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

doubt on GRANT


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kumar_ngl
Warnings : 1

New User


Joined: 05 Aug 2005
Posts: 50
Location: chennai

PostPosted: Thu Dec 29, 2005 12:40 pm
Reply with quote

Dear Experts,

Plz clear my doubt......

i'm giving grant option to xxx

GRANT ALL PRIVILAGES ON KUMAR.EMP TO XXX WITH GRANT OPTION.

xxx is granting to YYY

GRANT SELECT ON KUMAR.EMP TO YYY.

some time later ....KUMAR is revoking the GRANT from XXX
is it possible, if so will the YYY retain the grant on select kumar.emp.

its urgent...

kumar.p.v
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Thu Dec 29, 2005 1:11 pm
Reply with quote

No
Back to top
View user's profile Send private message
kumar_ngl
Warnings : 1

New User


Joined: 05 Aug 2005
Posts: 50
Location: chennai

PostPosted: Thu Dec 29, 2005 4:09 pm
Reply with quote

dear guptae,

I didn;t get the clear pic about your answer "No"..Please gimme a detailed explantaion if possible...thanx

kumar.p.v
Back to top
View user's profile Send private message
anilbatta

New User


Joined: 13 Nov 2005
Posts: 22

PostPosted: Thu Dec 29, 2005 5:21 pm
Reply with quote

Hi

I Think the GRANT permissions will be given only by the Database administrator and not be given by the users.

Suppose, if you are the Database Administrator, then you can grant the permission like this:

GRANT SELECT ALL FROM KUMAR.EMP to TTT
IN (GRANT SELECT FROM KUMAR.EMP TO YYY);

Try this out and let's check whether this will work or not.
And moreover be clear on the question you provide to the users.

Regards
Anilbatta
Back to top
View user's profile Send private message
nikyojin

New User


Joined: 05 Oct 2005
Posts: 94

PostPosted: Thu Dec 29, 2005 8:47 pm
Reply with quote

Hi Kumar,
Only the System Database Administrator has the Highest privilege to provide "Grant Authority".
But as per ur query suppose Kumar is the DB Admin. Hence if Kumar revokes the Grant option from TTT all the Privileges provided by TTT will be revoked. So YYY will not retain the select option.
This is my logical explanation....Let's hope we get some further help from our forum friends.....
Back to top
View user's profile Send private message
yeshao

New User


Joined: 28 Dec 2005
Posts: 2

PostPosted: Fri Dec 30, 2005 6:49 am
Reply with quote

Hi

The WITH GRANT OPTION clause of the GRANT statement allows an ID to pass the granted privilege to others. If the privilege is removed from the ID, its deletion can cascade to others. When a privilege is removed from authorization ID TTT, it is also removed from any ID to which TTT granted it, unless that ID also has the privilege from some other source.
An ID with SYSADM or SYSCTRL authority can revoke a privilege that has been granted by another ID.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Doubt about pl/1 (job offer) General Talk & Fun Stuff 5
No new posts doubt when executing a file when logg... TSO/ISPF 2
No new posts Doubt in MFS IMS DB/DC 2
No new posts Doubt on GETMAIN, FREEMAIN behaviour CICS 3
No new posts Doubt in using command code O IMS DB/DC 4
Search our Forums:

Back to Top