W dniu 13.06.2023 o 21:26, Sri h Kolusu pisze:
I put 'su' command before others, but it doesn't work.
Radoslaw,
Try using BPXBATCH
//STEP0100 EXEC PGM=BPXBATCH,REGION=8M
//STDOUT DD SYSOUT=*,
// LRECL=133,RECFM=FB,DSORG=PS,BLKSIZE=0
//STDERR DD SYSOUT=*
//STDPARM DD *
SH su;
echo $PATH;
your other commands;
This is one of the methods I tried. However every command after 'su' is
issued with no root authority.
@Curtis,
I also tried to use 'PGM su' instead of 'SH su'. I've got very
interesting RC=2816.
I also thought about SURROGAT for the user with UID=0. :-(
--
Radoslaw Skorupka
Lodz, Poland
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN