TechTalk: Combating Pesky Command Lines

Security - Other
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

Having a command line available is great. You can directly enter commands to start any task you wish without having to go through half a dozen menus. The need for command lines is so great that IBM created the QUSCMDLN API to satisfy this need--you can CALL the API from any of your own application programs and bingo--a window pops up, with a command line.

Not all users need command lines, however. And, what's more, some users should never get a command line for security reasons.

And yet, surely it would be to your users' advantage to gain access to the Work with Submitted Jobs (WRKSBMJOB) or Work with Spooled Files (WRKSPLF) panels, even though they provide a command line. Although you cannot disable the command line--it will always be there--you can limit what users can do with it. The key is the user profile's Limited Capabilities (LMTCPB) attribute.

Simply put, you can change a user profile to LMTCPB(*YES) if you don't want the user to be able to execute any OS/400 commands from it. You can perform this change from the Work with User Profiles

(WRKUSRPRF) panel, selecting option 2 to change. Once a user has LMTCPB(*YES), he can no longer execute any OS/400 commands from the command line, except these five: SIGNOFF, SNDMSG, DSPMSG, DSPJOB and DSPJOBLOG. All five are harmless. If you use PC Support, the STRPCO command will also be available to your users. If they attempt to run any other IBM-supplied command, the system will send an error message saying that the command is not allowed.

Warning! The Command Entry panel (CALL QCMD) blatantly ignores the LMTCPB attribute of the user. This means that you must not, under any circumstances, allow your users to gain access to the Command Entry panel unless they are system operators or programmers, or if you have retained the default LMTCPB(*NO) for the user.

Finally, a side issue. A user who has LMTCPB(*YES) will no longer be able to enter a program, menu or library name at the sign-on display. Since this is not common practice, it may not affect your shop. In any case, limited- capability users should be forced to go through an initial program (upon sign- on) that sets their work environment for them.

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  •  

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: