MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DB2 System Administrator Removal (z/OS)

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Thu Aug 04, 2005 10:07 am    Post subject: DB2 System Administrator Removal (z/OS) Reply with quote

I have to delete a SYSADM from one of our systems. If I issue a REVOKE for SYSADM on that user, it will have an unwanted cascade effect. What is the best way of removing all user permissions from the catalog without impacting other permissions?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Thu Aug 04, 2005 10:17 am    Post subject: Reply with quote

Bithead,

As the per the manual DB2 does not cascade a revoke of SYSADM authority from the installation SYSADM authorization IDs.
Check this link(bottom) which discusses the revoking of SYSADM

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNAGH10/3.2.7.3.4?SHELF=&DT=20010212102121&CASE=

Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Thu Aug 04, 2005 12:00 pm    Post subject: Reply with quote

Kolusu,

If I read this correctly, I need to make the userid an Install SysAdm (in the zparm) before I issue the REVOKE and this will pervent the cascade delete. Can you confirm this?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Thu Aug 04, 2005 12:13 pm    Post subject: Reply with quote

Quote:

If I read this correctly, I need to make the userid an Install SysAdm (in the zparm) before I issue the REVOKE and this will pervent the cascade delete. Can you confirm this?


Bithead,

Exactly right. first add to zparm then issue revoke and then re-assemble zparms once again.


Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Thu Aug 04, 2005 12:17 pm    Post subject: Reply with quote

Thanks Kolusu.
Back to top
View user's profile Send private message
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Tue Aug 09, 2005 1:11 pm    Post subject: Reply with quote

Kolusu,

I added the user as Install Sysadm over the weeknd my modifying ZPARM entry for SYSADM and reassembling & linking. I ran a REVOKE SYSADM FROM user BY ALL but it is still hanging up. The DB2 monitor shows many locks on SYSPLAN and SYSPACKAGE which makes me think that the REVOKE is cascading. Any ideas?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Tue Aug 09, 2005 1:26 pm    Post subject: Reply with quote

Quote:

ran a REVOKE SYSADM FROM user BY ALL


Why do you have ALL in in your revoke statement? Since he is already a SYSADM, I dont think any one GRANTED him any Privileges any additional privileges. By coding ALL ,DB2 is looking up all the users in the system , if they have granted any authority to the old sysadm

It should be just
Code:


REVOKE SYSADM FROM user


Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Wed Aug 10, 2005 10:56 am    Post subject: Reply with quote

Kolusu,

I tried it in another DB2 instance and it worked fine so it must be something that I did wrong. I will try again.

Thanks again for your help.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group