No...passwords are a one-way hash.

Well, technically there was (is?) a security hole if you had LANMAN (v1)
passwords stored for use with Netserver/QNTC.

They were quite easily to get to and to break.

That was many years ago..

If you must use RUNRMTCMD, you'll have to ask for the users password.

If you're only needed it so you can run an interactive app on the PC of the
logged in user, then consider using Start PC Command (STRPCCMD)

STRPCCMD uses a special 5250 screen to send a remote command to the PC via
the 5250 emulation session itself.

Only catch is you have to make sure the STRPCO command gets run in the
session before STRPCCMD will work.

I put together my own little wrapper..

pgm parm(&pCommand &pPause)
dcl var(&pCommand) type(*CHAR) len(128)
dcl var(&pPause) type(*CHAR) len(4)

strpco pcta(*NO)
monmsg msgid(IWS4010)
if cond(&pPause *EQ '*YES') +
then(strpccmd pccmd(&pCommand) pause(*YES))
else +
cmd(strpccmd pccmd(&pCommand) pause(*NO))

endpgm

Charles


On Tue, Mar 31, 2015 at 3:44 PM, tim <iseriesstuff@xxxxxxxxx> wrote:

is it possible to execute the runrmtcmd with the user/password of the user
logged in?

i know how to get the user, but how can i get the password?
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.