|
||
SecureMyi.com Security and Systems Management Newsletter for the IBM i
December 28, 2016 Issue
|
||
|
||
|
Feature Article
|
|
In This Issue
Quick Links
Our Newsletter Sponsors
Platinum Sponsor |
IBM i Security ResourcesIBM i Security Videos - SecureMyi RedBook - Security Guide IBM i Open Security Foundation - DataLoss DB National Vulnerability Database - NIST |
|
Featured YouTube Educational VideoIBM i Security
|
||
|
|
|
|
||
Security Shorts
By Dan Riehl - SecureMyi.com I have written often about using the IBM i Access command RMTCMD.exe to send commands from your Windows or Linux system to IBM i. But did you know you could also send multiple commands with one execution of the RMTCMD.exe? The Syntax used to send multiple commands is: rmtcmd /I rmtcmds.txt (Where rmtcmds.txt is the name of a text file containing the list of commands to be executed.) Here is an example. Using Notepad, enter the Control Language commands that are to be executed, and save to a text file. Here's an example you can try. CRTLIB LIB(MYTESTLIB) TYPE(*TEST) TEXT('My Test Library') Run the rmtcmd.exe specifying the name of the file which contains the commands. C:\>rmtcmd /I rmtcmds.txt Here is the result. (Note: You may be prompted to Logon, depending on your IBM i Access settings.) IBM i Access for WindowsVersion 7 Release 1 Level 0 Submit Remote Command (C) Copyright IBM Corporation and Others 1984, 2010. All rights reserved. U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Licensed Materials - Property of IBM The remote system name is MYSYSTEM. CRTLIB LIB(MYTESTLIB) TYPE(*TEST) TEXT('My Test Library') CPC2102 - Library MYTESTLIB created. CRTPF FILE(MYTESTLIB/MYTESTFILE) RCDLEN(500) TEXT('My Test file') CPC7301 - File MYTESTFILE created in library MYTESTLIB. CPC7305 - Member MYTESTFILE added to file MYTESTFILE in MYTESTLIB. GRTOBJAUT OBJ(MYTESTLIB) OBJTYPE(*LIB) USER(*PUBLIC) AUT(*EXCLUDE) CPI2201 - Authority given to user *PUBLIC for object MYTESTLIB in QSYS object type *LIB. CPC2201 - Object authority granted. SBMJOB CMD(CALL PGM(MYTESTPGM)) JOB(MYTEST) CPC1221 - Job 115263/MYUSER/MYTEST submitted to job queue QBATCH in library QGPL. RMTCMD.exe Security ImplicationsWhile the RMTCMD.exe is great in functionality, it also brings with its functionality, a serious security issue that you will want to be aware of. Limited Capabiliy Users (LMTCPB(*YES)) can run CL Commands using RMTCMD.exe. The RMTCMD.exe does not honor the LMTCPB attribute of a User Profile. For more information on this topic, see the article The Reality of User Limited Capabilities LMTCPB(*YES) in the April 9, 2014 issue of the SecureMyi Security Newsletter. |
Sponsored Links
IBM i, iSeries and AS/400
|
|
|
||
|
||
Send your IBM i Security and Systems Management News and Events! Send your Questions, Comments, Tips and Stories Copyright 2014-2017 - SecureMyi.com, all rights reserved SecureMyi.com | St Louis MO 63017 |