Search code examples
permissionsdb2database-schemaibm-midrange

Default permissions for new objects in the schema


I'm working on a DB2 for i database (aka DB2/400), on a schema (library) named S.

Inside schema S, I create database tables, procedures etc. with user A. I need that also user B has all privileges on such new objects. So I granted all privileges to users A and B on schema S. But new objects don't inherit them!

So I tried many configurations: on System i Navigator I played with authorization lists, "New Objects" button on permissions dialog for schema S... but nothing worked.

How can I set kind of default permissions to be automatically inherited by new objects created in my schema?

The only working alternative I know is remembering to grant privileges to user B every time I create an object. Not so smart...


Solution

  • I have IBM i 7.1.

    If I create table using 5250 emulator, inside STRSQL, it works, inheriting schema authorization list.

    If I create table using iSeries Navigator V5R4M0 (neither with right click on Tables > New > Table, nor with cwbundbs.exe), it doesn't work. Authorization list is not inherited...

    So it seems to be a bug in iSeries Navigator. Maybe someone with a newer version of it could confirm us if this has been fixed.

    Full details in the chat with @BuckCalabro.