Home > AS/400 Tips > iSeries security tips > Securing query definitions
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES SECURITY TIPS

Securing query definitions


Rich Loeber
02.22.2005
Rating: -4.00- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


A surprising byproduct of writing security tips for Seach400.com is people actually read them. I know that because I get what I call "fan mail" from readers on a fairly regular basis, and it still catches me off guard. This week, I heard from a reader who asked the following question:

"I have a Query/400 user who is not allowed to replace a query. I checked their user profile and I have granted them *ALLOBJ special authority. I know that is not the right way to go. With *ALLOBJ, they can run the query and do their work, but I want to eliminate the use of special authority *ALLOBJ. How do I handle such a situation so I don't have to use the special authority?"
More Information

I took some time and played around with *ALLOBJ special authority to come up with a good solution. I had to assume the reader was running security level 30 or higher. If not, SHAME ON HIM!

The solution I came up with relates to the fact that the public access setting for this query object is probably set to *USE. That means anyone not specifically authorized to alter the query definition object can run only the query and cannot make changes to it.

You can view the security setup for the query definition object using the following command:

    DSPOBJAUT OBJ(MYLIBR/MYQRY) OBJTYPE(*QRYDFN)

How you correct the situation depends on how you want other users to access the query. If you change the public setting to *ALL, then anyone can update the query and run it. If you want everyone to have the ability to change the query definition, then this is all you need to do.

If you want just one additional user to have this ability, but leave the general public out, you will have to edit the authority for the query definition and add that new user to have *ALL authority. You can edit the authority using the following command:

    EDTOBJAUT OBJ(MYLIBR/MYQRY) OBJTYPE(*QRYDFN)

To add a new specific user, use the F6 option and add the user in the list that opens up with *ALL in the Object Authority column.

Whenever any of the authorized users updates the Query Definition, the object ownership and authorization settings will be kept. If you have a lot of Query Definitions where you want to establish this sort of control, consider using an authorization list so you have to maintain only one set of rules.

When you create or update a Query Definition, Query/400 lets you specify an authorization list when you are finished working with the definition. Remember that the default authorization for a Query Definition -- when it is created -- is taken from the authorization setup for the library in which the definition is stored.

If you have any questions about this topic, you can reach me at rich@kisco.com, I'll give it my best shot. All e-mail messages will be answered.

---------------------------------------
About the author: Rich Loeber is president of Kisco Information Systems Inc.s in Saranac Lake, N.Y. The company is a provider of various security products for the iSeries market.


Rate this Tip
To rate tips, you must be a member of Search400.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
iSeries security tips
Developing a security incident response system for System i
Tracking remote access users on System i
Setting up security for programmers on IBM i
Controlling remote access on your IBM i
Checking in on your IBM i authorization lists
PCI data security standards and the System i
Securing the integrated file system on IBM System i
Contextual security on IBM i: Limit user profile access
Time for a security checkup for your i
Security monitoring on IBM i: Watching your super users

Oracle on iSeries
Oracle boasts 11g on SPARC is faster than IBM DB2 on Power 595
Debating DB2 versus Oracle
IBM steps up iSeries, pSeries overlap
New, undocumented Query function can boost your productivity
Get the system to recognize a date separator
Run multiple SQL statements
Updating the 'VALUE' column using DB2/400
Populate a Lotus Notes database with iSeries data
Inserting data into a table
Is the SQL Path being used?

iSeries system and application security
Developing a security incident response system for System i
Setting up security for programmers on IBM i
Blocking AS/400 DB2 users
Trouble accessing IFS path from Win2k3 server
Checking in on your IBM i authorization lists
Strategies for securing IBM i production files
Changing password security levels and upgrading operating systems on the IBM i
Determine the value of parameter UPPWEI in the DSPUSRPRF field
Define journal code value "K"
Modify content within a journal receiver file

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
midrange  (Search400.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



iSeries Security - Security Tools, Physical Security and System Security
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts