Controlling access to WRKJOBSCDE
370 pts.
0
Q:
Controlling access to WRKJOBSCDE
Our users need command-line access for a number of commands, but I don't want them to have access to the WRKJOBSCDE command. What is the best way to restrict access to a specific command like this? Thanks in advance...
ASKED: Jul 28 2008  9:02 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
4165 pts.
0
A:
 RATE THIS ANSWER
+1
Click to Vote:
  •   1
  •  0
  • AddThis Social Bookmark Button

Hi,

If you do a WRKOBJ WRKJOBSCDE you can set the access to the command. Option 2 lets you change the access you want anyone to have or not to have. You can put *PUBLIC *exclude and just set up for certain user access like a Systems Administration ID or a Group profile and then give what access they can have.
Last Answered: Jul 28 2008  9:27 PM GMT by Tpinky   4165 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Gilly400   23625 pts.  |   Jul 29 2008  10:25AM GMT

Hi,

I would recommend using a group profile, this will make it much easier to maintain.

Regards,

Martin Gilbert.

 

SBatSI   370 pts.  |   Jul 29 2008  8:23PM GMT

Thanks for both of the responses; unfortunately, I had already started down the recommended path, but after I applied PUBLIC *EXCLUDE to the object, an unprivileged user could still execute the WRKJOBSCDE command, so I undid my changes and posted my question here. Here is the existing object-authority setup.

Object secured by authorization list . . . . . . . . . . . . *NONE

Object
User Group Authority
*PUBLIC *USE
QSYS *ALL

The QSYS entry does not confer permissions to an unprivileged user, does it? What am I overlooking?

Thanks again…

 

Gilly400   23625 pts.  |   Jul 30 2008  1:26PM GMT

Hi,

Do your users have *ALLOBJ special authority ?

Regards,

Martin.

 

SBatSI   370 pts.  |   Jul 30 2008  2:27PM GMT

Martin -

No way… it makes me shudder just to think of that… ;-} Our regular user profiles have no special authorities themselves; they are, however, owned by a group profile that has *JOBCTL and *SAVSYS special authorities.

Thanks again for your consideration.

Steve B

 

GAC   300 pts.  |   Jul 30 2008  5:38PM GMT

An alternative path is to exclude all users from accessing the object and then make a menu with the specific commands you want the to use. Isolating the command objects (or making copies of them) in an alternative library can make life easier too.

Best regards,

Gerardo.

 

Mcl   2500 pts.  |   Jul 30 2008  6:10PM GMT

Three other things to look at.. All are on the User Profile.

1. Limit Capabilities. If set to *YES it should prevent the user from using the command line. If set to *NO or *PARTIAL then command line access will be based on authority.

2. Group profiles. If the user is part of a group that has authority to the object, then the user will get authority to the object. (doesn’t seem to be your issue)

3. Initial program for the user. What authority does that have and is the user inheriting authority from that? Use DSPPGM to determine all of that.

Regards
Mike

 

Gilly400   23625 pts.  |   Jul 31 2008  3:03PM GMT

Hi,

Worked in quite a few places where the users have *ALLOBJ with LMTCPB(*YES) and specific signon menus - lazy way of security management. The group profile having *JOBCTL & *SAVSYS shouldn’t have any effect on the access to the command (unless this is interpreted as job control?).

Might also be worth checking if you have more than one copy of the command on your system, maybe they’re revoked from one copy, but not from the other - and bear in mind the new “proxy” commands…

Regards,

Martin.

 

SBatSI   370 pts.  |   Jul 31 2008  11:02PM GMT

I have followed up on all the suggestions kindly provided, and it appears that the issue is with the initial program specified for the users; it is owned by a profile with elevated special authorities, and it runs under that profile. The initial program is required by our line-of-business system, so I will need to research changing the owner to a less-privileged profile.

Thanks again to all for your kind assistance.

Regards,

Steve B

 

TomLiotta   8025 pts.  |   Oct 17 2009  7:08AM GMT

The initial program is required by our line-of-business system, so I will need to research changing the owner to a less-privileged profile.

Although required by your line-of-business system, that shouldn’t translate to “required as an initial program by your line-of-business system”. There should be no reason to require any program as an initial program.

Further, if you have access to the source code, you can simply block adopted authority from passing to the command line by wrapping the command line access in a USEADPAUT(*NO) program. And if you don’t have access to the source, lodge a serious security complaint with the vendor and demand that they fix it.

Tom

 

Whatis23   4040 pts.  |   Oct 21 2009  11:33PM GMT

Martin, just curious. How did you prevent your users with *ALLOBJ authority from using WRKJOBSCDE?

 

TomLiotta   8025 pts.  |   Nov 3 2009  11:55PM GMT

…owned by a group profile that has *JOBCTL and *SAVSYS…

A very bad combination. In fact, *SAVSYS by itself is far too dangerous except for the maybe three or four profiles that would ever need to save the entire system.

Tom

 
0