I'm trying to invoke a program to run as another user (by getting input user/pwd) in AS400 OS using Java. Like runas
in Windows or sudo
in Unix — what can we do in AS400 OS?
I am able to invoke basic Unix commands like find
, cd
, ls
etc. through Java on AS400.
I have very restricted access on the experimental AS400 sandbox provided to me. So I am not sure if sudo
command through java will work when ran as admin.
I think on AS400 console STRQSH
or QSH
is a custom build program and all Unix commands are not supported. Hence I am clueless about what is the correct and concert way of doing it. Any guidance will be appreciated – how do the industry folks do it? Is there any sudo
/runas
equivalent in AS400? Do IBM have its own shell?