> Am I correct in believing that DB2's default behaviour in Windows is to
> treat everyone in the Administrators group as a Sysadm, even though no
> SYSADM_GROUP has been set within the instance??
Yes, this is correct. If you don't assign a specific group to
SYSADM_GROUP, then DB2 uses the Administrators group on the local machine.
> This seems like a rather gaping security hole to me! If I am understanding
> this correctly, I would be highly inclined to advise all DB2 administrators
> on Windows to set up groups explicitly for DB2 Sysadm, Sysmaint and Sysctrl
> immediately upon installing DB2 and make sure that their various DB2 users
> belong _only_ to those groups. Am I going overboard or is that a reasonable
> way to set things up?
I don't think this is a security hole by default, because it depends on
how tightly you control your administrators group. No doubt, it's very
common to find the DBA and Sys Admin be the same person, especially in
smaller shops that can't afford to staff them separately.
And even then, it's just a technicality. A Windows administrator could
simply add their ID (or any ID) to the group you've set up for
SYSADM_GROUP and have at the database. Or worse, just delete all of
the files associated with DB2, with no permission-diddling required.
rhino - 04 Dec 2007 07:45 GMT
>> Am I correct in believing that DB2's default behaviour in Windows is to
>> treat everyone in the Administrators group as a Sysadm, even though no
>> SYSADM_GROUP has been set within the instance??
>
> Yes, this is correct. If you don't assign a specific group to
> SYSADM_GROUP, then DB2 uses the Administrators group on the local machine.
Okay, that's good. I wanted to make sure that I was reasoning this out
correctly and apparently I did.
>> This seems like a rather gaping security hole to me! If I am
>> understanding this correctly, I would be highly inclined to advise all
[quoted text clipped - 7 lines]
> common to find the DBA and Sys Admin be the same person, especially in
> smaller shops that can't afford to staff them separately.
Ok, fair enough....
> And even then, it's just a technicality. A Windows administrator could
> simply add their ID (or any ID) to the group you've set up for
> SYSADM_GROUP and have at the database. Or worse, just delete all of
> the files associated with DB2, with no permission-diddling required.
I see I don't have enough experience in thinking deviously; that simple ploy
didn't occur to me ;-)
Clearly, you have to be pretty sure of who you allow in the Administrators
group; if you can't trust someone in that group not to mess up your DB2
system, you need to remove him/her from the Administrators group!
--
Rhino