16.10.2015 Views

Getting Started with DB2 Express-C

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

184 <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> <strong>DB2</strong> <strong>Express</strong>-C<br />

As shown by Figure 10.6, you select the desired table, right-click on it, and choose<br />

Privileges. Once selected, the Table Privileges dialog box appears as shown in Figure<br />

10.7. This figure also explains the different fields and elements of the dialog box.<br />

Figure 10.7 – The Table Privileges Dialog box<br />

Alternatively, you can query the <strong>DB2</strong> SYSCAT catalog views which contain the<br />

authorization information. For example, if you would like to know if user <strong>DB2</strong>ADMIN has<br />

SELECT privilege on table T2, and would like to know who granted this privilege, you could<br />

run a query like this:<br />

SELECT grantor, grantee, selectauth<br />

FROM syscat.tabauth<br />

WHERE tabname = 'T2'<br />

GRANTOR GRANTEE SELECTAUTH<br />

-------------------------------------------------<br />

ARFCHONG <strong>DB2</strong>ADMIN Y<br />

In the above example, user ARFCHONG granted SELECT privilege to user <strong>DB2</strong>ADMIN.<br />

10.7 Extended Security on Windows<br />

To prevent access through the Windows operating system to <strong>DB2</strong> files and directories<br />

(such as the ones where <strong>DB2</strong> stores instance information), <strong>DB2</strong> enables by default<br />

extended security at installation time. Extended security creates two groups:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!