Hello All,
I have started working as DB2 LUW DBA ( AIX , Db2 10.5). Few months back I got to create a new database after all testing this is into PROD now.
Recently I was just going through authorities and privileges on my database and see group "PUBLIC" has got many privileges like "SELECT", UPdate, write, EXECUTE, BIND, CREATEIN, IMPLICIT_SCHEMA.
After doing some google , i get to know that I didn't use "RESTRICTIVE" while creating database . it may case many issue like users having "CONNECT" authority can create any objects on database .
But since it's already there in PROD. I really need to know what all permissions group "PUBLIC" should have? and what all I can revoke from "PUBLIC"?
Thanks in advance. [Have been getting always right solutions here. so came back again ]
Regards
Shashi
On 5/31/2017 4:36 AM, Shashi Shekhar wrote:
Hello All,
I have started working as DB2 LUW DBA ( AIX , Db2 10.5). Few months back I got to create a new database after all testing this is into PROD now.
Recently I was just going through authorities and privileges on my database and see group "PUBLIC" has got many privileges like "SELECT", UPdate, write, EXECUTE, BIND, CREATEIN, IMPLICIT_SCHEMA.
After doing some google , i get to know that I didn't use "RESTRICTIVE" while creating database . it may case many issue like users having "CONNECT" authority can create any objects on database .
But since it's already there in PROD. I really need to know what all permissions group "PUBLIC" should have? and what all I can revoke from "PUBLIC"?
Thanks in advance. [Have been getting always right solutions here. so came back again ]
Regards
Shashi
Shashi,
What PUBLIC needs is very dependent on your database and installation.
In a (very) few cases, it might be OK for PUBLIC to have all of those privileges. However, that would be very seldom, IMHO. For instance,
I've used it in classes so students can access the class database before
we get into privileges, etc.
For a production database I have always removed all privileges from
PUBLIC. If they don't have a valid signon to the database, they have no business accessing the data.
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================
On Wednesday, 31 May 2017 17:47:14 UTC+5:30, Jerry Stuckle wrote:
On 5/31/2017 4:36 AM, Shashi Shekhar wrote:
Hello All,
I have started working as DB2 LUW DBA ( AIX , Db2 10.5). Few months back I got to create a new database after all testing this is into PROD now.
Recently I was just going through authorities and privileges on my database and see group "PUBLIC" has got many privileges like "SELECT", UPdate, write, EXECUTE, BIND, CREATEIN, IMPLICIT_SCHEMA.
After doing some google , i get to know that I didn't use "RESTRICTIVE" while creating database . it may case many issue like users having "CONNECT" authority can create any objects on database .
But since it's already there in PROD. I really need to know what all permissions group "PUBLIC" should have? and what all I can revoke from "PUBLIC"?
Thanks in advance. [Have been getting always right solutions here. so came back again ]
Regards
Shashi
Shashi,
What PUBLIC needs is very dependent on your database and installation.
In a (very) few cases, it might be OK for PUBLIC to have all of those
privileges. However, that would be very seldom, IMHO. For instance,
I've used it in classes so students can access the class database before
we get into privileges, etc.
For a production database I have always removed all privileges from
PUBLIC. If they don't have a valid signon to the database, they have no
business accessing the data.
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================
Thanks Jerry for response.
We are planning to revoke all permissions . so do we need to revoke at all levels like -
DB level -
BINDADDAUTH
CONNECTAUTH
CREATETABAUTH
IMPLSCHEMAAUTH
Schema level -
- CREATEIN on schema SQLJ
- CREATEIN on schema NULLID
Package level -
- BIND on all packages created in the NULLID schema
- EXECUTE on all packages created in the NULLID schema
if I revoke BIND and EXECUTE from PUBLIC, and Developer ( has
TBSPACEAUTH
- revoking USE privilege on table space USERSPACE1.
and some more AUTH table where PUBLIC gets default access.
would it have any kind of impact any level? I am trying parallel to understand on a dummy database.
Thanks again
Shashi
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 238:01:02 |
Calls: | 6,624 |
Files: | 12,172 |
Messages: | 5,319,878 |