Re: LPSTAT Fails
I know you fully specified the path when you gave the lpstat command, but I wonder if that's enough. There are two versions of lpstat. One is just a stub. See https://www.ibm.com/support/knowledgecenter/SSLTBW_2.4.0/com.ibm.zos.v2r4.aopu000/lps.htm where it says: " /bin/lpstat is a stub command. z/OS® UNIX recognizes it but does not support its function. To make sure that you run /usr/lpp/Printsrv/lpstat, do either of these: - Use the mv command to rename /bin/lpstat. - Change your PATH environment variable so that /usr/lpp/Printsrv comes before /bin." You can also run the command /usr/lpp/Printsrv/samples/aopcheck That's a Rexx exec. Check the comments inside. If you use all default names then you can run aopcheck with no arguments. If you use non-default names, you can pass your names as arguments or you can customize aopcheck to use the defaults configured for your site. The aopcheck checks certain permissions bits and owner and group names and gives messages that contain the phrase "but should be" if anything isn't as expected. You might want to see https://www.ibm.com/support/knowledgecenter/SSLTBW_2.4.0/com.ibm.zos.v2r4.aops000/custmap.htm and review the steps in the Infoprint Server Customization Roadmap to make sure you didn't skip something. For more than that, you should open a case with IBM for the Infoprint Server component of z/OS. Start here: https://www.ibm.com/support/home/ --Roger On Mon, Oct 5, 2020 at 10:28 AM David Spiegel wrote: > Hi, > A user issues /usr/lpp/Printsrv/bin/lpstat -a > and gets: > /usr/lpp/Printsrv/bin: FSUM9209 cannot execute: reason code = 0b1b011f: > EDC5111I Permission denied. > > The user is COnnected to AOPADMIN which is PErmitted UPDATE to PRINTSRV > AOP.ADMINISTRATOR > > Here are the z/OS V2.3 Files and Permission Bits: > Dir755 rwxr-xr-x 2020-02-06 04:35 OMVSKERN 8192 . > Dir755 rwxr-xr-x 2020-02-06 04:35 OMVSKERN 8192 .. > Syml 777 rwxrwxrwx 2019-04-29 20:56 OMVSKERN 42 .aokcinit > Syml 777 rwxrwxrwx 2019-04-29 20:56 OMVSKERN 48 afpxpcl > Syml 777 rwxrwxrwx 2019-04-29 21:24 OMVSKERN 34 afpxpcld > Syml 777 rwxrwxrwx 2019-04-29 20:56 OMVSKERN 48 afpxpdf > Syml 777 rwxrwxrwx 2019-04-29 21:24 OMVSKERN 34 afpxpdfd > Syml 777 rwxrwxrwx 2019-04-29 20:56 OMVSKERN 46 afpxps > Syml 777 rwxrwxrwx 2019-04-29 21:24 OMVSKERN 33 afpxpsd > File 755 rwxr-xr-x 2017-05-24 17:40 OMVSKERN 2162688 aopchkinv > File 700 rwx-- 2017-05-24 17:40 OMVSKERN20480 aopcstart > File 700 rwx-- 2020-02-06 04:34 OMVSKERN 3911680 aopd > File 754 rwxr-xr-- 2020-02-06 04:34 OMVSKERN32768 aopdemon > File 700 rwx-- 2020-02-06 04:34 OMVSKERN 286720 aopippd > File 750 rwxr-x--- 2020-02-06 04:34 OMVSKERN 3092480 aoplogu > File 700 rwx-- 2020-02-06 04:34 OMVSKERN 299008 aoplpd > File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 5517312 aopmig > File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 2396160 aopmigns > File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 1810432 aopmigpw > File 700 rwx-- 2020-02-06 04:34 OMVSKERN 176128 aopnetd > File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 3534848 aopoms > File 700 rwx-- 2020-02-06 04:35 OMVSKERN 3198976 aopoutd > File 755 rwxr-xr-x 2020-02-06 04:35 OMVSKERN 2408448 aopsapd > File 750 rwxr-x--- 2020-02-06 04:35 OMVSKERN 2625536 aopsend > File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 5292 aopsetup > File 700 rwx-- 2020-02-06 04:35 OMVSKERN 1835008 aopssid > File 755 rwxr-xr-x 2017-05-24 17:40 OMVSKERN13399 aopstart > File 755 rwxr-xr-x 2020-02-06 04:35 OMVSKERN 2625536 aopstat > File 750 rwxr-x--- 2020-02-06 04:35 OMVSKERN 2519040 aopstop > File 700 rwx-- 2020-02-06 04:35 OMVSKERN 847872 aopsubd > File 700 rwx-- 2020-02-06 04:35 OMVSKERN 663552 aopwsmd > File 750 rwxr-x--- 2017-05-24 17:40 OMVSKERN 2633728 aopxcfut > File 700 rwx-- 2020-02-06 04:35 OMVSKERN 532480 aopxfd > File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 3358720 cancel > File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 2871296 filter > File 750 rwxr-x--- 2020-02-06 04:34 OMVSKERN 2072576 hinvu > Dir755 rwxr-xr-x 2017-05-24 17:40 OMVSKERN 8192 IBM > File 750 rwxr-x--- 2017-05-24 17:40 OMVSKERN 1760 > loadprinterinventory > File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 3383296 lp > File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 3444736 lpstat > File 750 rwxr-x--- 2020-02-06 04:35 OMVSKERN 3608576 pidu > File 755 rwxr-xr-x 2017-05-24 17:40 OMVSKERN 2223 remotexf > File 750 rwxr-x--- 2020-02-06 04:35 OMVSKERN 2023424 sdbu > >
Re: LPSTAT Fails
On Mon, 5 Oct 2020 17:08:44 +, Jousma, David wrote: >There is something besides just a permissions problem. Were there additional >messages besides what you posted? > >bpxmtext 0b1b011f >BPXPREXC 07/01/19 >JRExecNotRegFile: The filename specified on the exec is not a regular file > >Action: The exec service detected that the filename specified by the pathname >argument is not a regular type file. Correct the pathname argument and >resubmit the job. > I'm perplexed that the message reports: A user issues /usr/lpp/Printsrv/bin/lpstat -a and gets: /usr/lpp/Printsrv/bin: FSUM9209 cannot execute: reason code = 0b1b011f: (which is not a regular type file but a directory) and not: /usr/lpp/Printsrv/bin/lpstat: FSUM9209 ... Is this as silly as a buffer overflow? Probe that with: /./././usr/lpp/Printsrv/bin/lpstat And try taking the path apart level by level: ls -ld /usr/lpp/Printsrv/bin/lpstat ls -ld /usr/lpp/Printsrv/bin ls -ld /usr/lpp/Printsrv ls -ld /usr/lpp ls -ld /usr ls -ld / >-Original Message- >From: David Spiegel >Sent: Monday, October 5, 2020 12:28 PM > >A user issues /usr/lpp/Printsrv/bin/lpstat -a and gets: >/usr/lpp/Printsrv/bin: FSUM9209 cannot execute: reason code = 0b1b011f: >EDC5111I Permission denied. > >The urer is COnnected to AOPADMIN which is PErmitted UPDATE to PRINTSRV >AOP.ADMINISTRATOR > What command produced the output below? >Here are the z/OS V2.3 Files and Permission Bits: >Dir 755 rwxr-xr-x 2020-02-06 04:35 OMVSKERN 8192 . >Dir 755 rwxr-xr-x 2020-02-06 04:35 OMVSKERN 8192 .. >Syml 777 rwxrwxrwx 2019-04-29 20:56 OMVSKERN 42 .aokcinit Syml > 777 rwxrwxrwx 2019-04-29 20:56 OMVSKERN 48 afpxpcl Syml 777 > rwxrwxrwx 2019-04-29 21:24 OMVSKERN 34 afpxpcld Syml 777 >rwxrwxrwx 2019-04-29 20:56 OMVSKERN 48 afpxpdf Syml 777 >rwxrwxrwx 2019-04-29 21:24 OMVSKERN 34 afpxpdfd Syml 777 >rwxrwxrwx 2019-04-29 20:56 OMVSKERN 46 afpxps Syml 777 >rwxrwxrwx 2019-04-29 21:24 OMVSKERN 33 afpxpsd File 755 >rwxr-xr-x 2017-05-24 17:40 OMVSKERN 2162688 aopchkinv File 700 >rwx-- 2017-05-24 17:40 OMVSKERN 20480 aopcstart File 700 >rwx-- 2020-02-06 04:34 OMVSKERN 3911680 aopd File 754 rwxr-xr-- > 2020-02-06 04:34 OMVSKERN 32768 aopdemon File 700 rwx-- >2020-02-06 04:34 OMVSKERN 286720 aopippd File 750 rwxr-x--- >2020-02-06 04:34 OMVSKERN 3092480 aoplogu File 700 rwx-- >2020-02-06 04:34 OMVSKERN 299008 aoplpd File 755 rwxr-xr-x >2020-02-06 04:34 OMVSKERN 5517312 aopmig File 755 rwxr-xr-x >2020-02-06 04:34 OMVSKERN 2396160 aopmigns File 755 rwxr-xr-x >2020-02-06 04:34 OMVSKERN 1810432 aopmigpw File 700 rwx-- >2020-02-06 04:34 OMVSKERN 176128 aopnetd File 755 rwxr-xr-x >2020-02-06 04:34 OMVSKERN 3534848 aopoms File 700 rwx-- >2020-02-06 04:35 OMVSKERN 3198976 aopoutd File 755 rwxr-xr-x >2020-02-06 04:35 OMVSKERN 2408448 aopsapd File 750 rwxr-x--- >2020-02-06 04:35 OMVSKERN 2625536 aopsend File 755 rwxr-xr-x >2020-02-06 04:34 OMVSKERN 5292 aopsetup File 700 rwx-- >2020-02-06 04:35 OMVSKERN 1835008 aopssid File 755 rwxr-xr-x >2017-05-24 17:40 OMVSKERN 13399 aopstart File 755 rwxr-xr-x >2020-02-06 04:35 OMVSKERN 2625536 aopstat File 750 rwxr-x--- >2020-02-06 04:35 OMVSKERN 2519040 aopstop File 700 rwx-- >2020-02-06 04:35 OMVSKERN 847872 aopsubd File 700 rwx-- >2020-02-06 04:35 OMVSKERN 663552 aopwsmd File 750 rwxr-x--- >2017-05-24 17:40 OMVSKERN 2633728 aopxcfut File 700 rwx-- >2020-02-06 04:35 OMVSKERN 532480 aopxfd File 755 rwxr-xr-x >2020-02-06 04:34 OMVSKERN 3358720 cancel File 755 rwxr-xr-x >2020-02-06 04:34 OMVSKERN 2871296 filter File 750 rwxr-x--- >2020-02-06 04:34 OMVSKERN 2072576 hinvu Dir 755 rwxr-xr-x >2017-05-24 17:40 OMVSKERN 8192 IBM File 750 rwxr-x--- 2017-05-24 >17:40 OMVSKERN 1760 loadprinterinventory File 755 rwxr-xr-x >2020-02-06 04:34 OMVSKERN 3383296 lp File 755 rwxr-xr-x 2020-02-06 >04:34 OMVSKERN 3444736 lpstat File 750 rwxr-x--- 2020-02-06 04:35 >OMVSKERN 3608576 pidu File 755 rwxr-xr-x 2017-05-24 17:40 OMVSKERN > 2223 remotexf File 750 rwxr-x--- 2020-02-06 04:35 OMVSKERN >2023424 sdbu > >Other than giving the users UID(0), how can I allow them to issue LPSTAT (and >other commands) successfully? -- gil
Re: LPSTAT Fails
There is something besides just a permissions problem. Were there additional messages besides what you posted? bpxmtext 0b1b011f BPXPREXC 07/01/19 JRExecNotRegFile: The filename specified on the exec is not a regular file Action: The exec service detected that the filename specified by the pathname argument is not a regular type file. Correct the pathname argument and resubmit the job. _ Dave Jousma AVP | Director, Technology Engineering Fifth Third Bank | 1830 East Paris Ave, SE | MD RSCB2H | Grand Rapids, MI 49546 616.653.8429 | fax: 616.653.2717 -Original Message- From: IBM Mainframe Discussion List On Behalf Of David Spiegel Sent: Monday, October 5, 2020 12:28 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: LPSTAT Fails **CAUTION EXTERNAL EMAIL** **DO NOT open attachments or click on links from unknown senders or unexpected emails** Hi, A user issues /usr/lpp/Printsrv/bin/lpstat -a and gets: /usr/lpp/Printsrv/bin: FSUM9209 cannot execute: reason code = 0b1b011f: EDC5111I Permission denied. The user is COnnected to AOPADMIN which is PErmitted UPDATE to PRINTSRV AOP.ADMINISTRATOR Here are the z/OS V2.3 Files and Permission Bits: Dir 755 rwxr-xr-x 2020-02-06 04:35 OMVSKERN 8192 . Dir 755 rwxr-xr-x 2020-02-06 04:35 OMVSKERN 8192 .. Syml 777 rwxrwxrwx 2019-04-29 20:56 OMVSKERN 42 .aokcinit Syml 777 rwxrwxrwx 2019-04-29 20:56 OMVSKERN 48 afpxpcl Syml 777 rwxrwxrwx 2019-04-29 21:24 OMVSKERN 34 afpxpcld Syml 777 rwxrwxrwx 2019-04-29 20:56 OMVSKERN 48 afpxpdf Syml 777 rwxrwxrwx 2019-04-29 21:24 OMVSKERN 34 afpxpdfd Syml 777 rwxrwxrwx 2019-04-29 20:56 OMVSKERN 46 afpxps Syml 777 rwxrwxrwx 2019-04-29 21:24 OMVSKERN 33 afpxpsd File 755 rwxr-xr-x 2017-05-24 17:40 OMVSKERN 2162688 aopchkinv File 700 rwx-- 2017-05-24 17:40 OMVSKERN 20480 aopcstart File 700 rwx-- 2020-02-06 04:34 OMVSKERN 3911680 aopd File 754 rwxr-xr-- 2020-02-06 04:34 OMVSKERN 32768 aopdemon File 700 rwx-- 2020-02-06 04:34 OMVSKERN 286720 aopippd File 750 rwxr-x--- 2020-02-06 04:34 OMVSKERN 3092480 aoplogu File 700 rwx-- 2020-02-06 04:34 OMVSKERN 299008 aoplpd File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 5517312 aopmig File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 2396160 aopmigns File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 1810432 aopmigpw File 700 rwx-- 2020-02-06 04:34 OMVSKERN 176128 aopnetd File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 3534848 aopoms File 700 rwx-- 2020-02-06 04:35 OMVSKERN 3198976 aopoutd File 755 rwxr-xr-x 2020-02-06 04:35 OMVSKERN 2408448 aopsapd File 750 rwxr-x--- 2020-02-06 04:35 OMVSKERN 2625536 aopsend File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 5292 aopsetup File 700 rwx-- 2020-02-06 04:35 OMVSKERN 1835008 aopssid File 755 rwxr-xr-x 2017-05-24 17:40 OMVSKERN 13399 aopstart File 755 rwxr-xr-x 2020-02-06 04:35 OMVSKERN 2625536 aopstat File 750 rwxr-x--- 2020-02-06 04:35 OMVSKERN 2519040 aopstop File 700 rwx-- 2020-02-06 04:35 OMVSKERN 847872 aopsubd File 700 rwx-- 2020-02-06 04:35 OMVSKERN 663552 aopwsmd File 750 rwxr-x--- 2017-05-24 17:40 OMVSKERN 2633728 aopxcfut File 700 rwx-- 2020-02-06 04:35 OMVSKERN 532480 aopxfd File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 3358720 cancel File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 2871296 filter File 750 rwxr-x--- 2020-02-06 04:34 OMVSKERN 2072576 hinvu Dir 755 rwxr-xr-x 2017-05-24 17:40 OMVSKERN 8192 IBM File 750 rwxr-x--- 2017-05-24 17:40 OMVSKERN 1760 loadprinterinventory File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 3383296 lp File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 3444736 lpstat File 750 rwxr-x--- 2020-02-06 04:35 OMVSKERN 3608576 pidu File 755 rwxr-xr-x 2017-05-24 17:40 OMVSKERN 2223 remotexf File 750 rwxr-x--- 2020-02-06 04:35 OMVSKERN 2023424 sdbu Other than giving the users UID(0), how can I allow them to issue LPSTAT (and other commands) successfully? Thanks and regards, David -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu
LPSTAT Fails
Hi, A user issues /usr/lpp/Printsrv/bin/lpstat -a and gets: /usr/lpp/Printsrv/bin: FSUM9209 cannot execute: reason code = 0b1b011f: EDC5111I Permission denied. The user is COnnected to AOPADMIN which is PErmitted UPDATE to PRINTSRV AOP.ADMINISTRATOR Here are the z/OS V2.3 Files and Permission Bits: Dir 755 rwxr-xr-x 2020-02-06 04:35 OMVSKERN 8192 . Dir 755 rwxr-xr-x 2020-02-06 04:35 OMVSKERN 8192 .. Syml 777 rwxrwxrwx 2019-04-29 20:56 OMVSKERN 42 .aokcinit Syml 777 rwxrwxrwx 2019-04-29 20:56 OMVSKERN 48 afpxpcl Syml 777 rwxrwxrwx 2019-04-29 21:24 OMVSKERN 34 afpxpcld Syml 777 rwxrwxrwx 2019-04-29 20:56 OMVSKERN 48 afpxpdf Syml 777 rwxrwxrwx 2019-04-29 21:24 OMVSKERN 34 afpxpdfd Syml 777 rwxrwxrwx 2019-04-29 20:56 OMVSKERN 46 afpxps Syml 777 rwxrwxrwx 2019-04-29 21:24 OMVSKERN 33 afpxpsd File 755 rwxr-xr-x 2017-05-24 17:40 OMVSKERN 2162688 aopchkinv File 700 rwx-- 2017-05-24 17:40 OMVSKERN 20480 aopcstart File 700 rwx-- 2020-02-06 04:34 OMVSKERN 3911680 aopd File 754 rwxr-xr-- 2020-02-06 04:34 OMVSKERN 32768 aopdemon File 700 rwx-- 2020-02-06 04:34 OMVSKERN 286720 aopippd File 750 rwxr-x--- 2020-02-06 04:34 OMVSKERN 3092480 aoplogu File 700 rwx-- 2020-02-06 04:34 OMVSKERN 299008 aoplpd File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 5517312 aopmig File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 2396160 aopmigns File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 1810432 aopmigpw File 700 rwx-- 2020-02-06 04:34 OMVSKERN 176128 aopnetd File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 3534848 aopoms File 700 rwx-- 2020-02-06 04:35 OMVSKERN 3198976 aopoutd File 755 rwxr-xr-x 2020-02-06 04:35 OMVSKERN 2408448 aopsapd File 750 rwxr-x--- 2020-02-06 04:35 OMVSKERN 2625536 aopsend File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 5292 aopsetup File 700 rwx-- 2020-02-06 04:35 OMVSKERN 1835008 aopssid File 755 rwxr-xr-x 2017-05-24 17:40 OMVSKERN 13399 aopstart File 755 rwxr-xr-x 2020-02-06 04:35 OMVSKERN 2625536 aopstat File 750 rwxr-x--- 2020-02-06 04:35 OMVSKERN 2519040 aopstop File 700 rwx-- 2020-02-06 04:35 OMVSKERN 847872 aopsubd File 700 rwx-- 2020-02-06 04:35 OMVSKERN 663552 aopwsmd File 750 rwxr-x--- 2017-05-24 17:40 OMVSKERN 2633728 aopxcfut File 700 rwx-- 2020-02-06 04:35 OMVSKERN 532480 aopxfd File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 3358720 cancel File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 2871296 filter File 750 rwxr-x--- 2020-02-06 04:34 OMVSKERN 2072576 hinvu Dir 755 rwxr-xr-x 2017-05-24 17:40 OMVSKERN 8192 IBM File 750 rwxr-x--- 2017-05-24 17:40 OMVSKERN 1760 loadprinterinventory File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 3383296 lp File 755 rwxr-xr-x 2020-02-06 04:34 OMVSKERN 3444736 lpstat File 750 rwxr-x--- 2020-02-06 04:35 OMVSKERN 3608576 pidu File 755 rwxr-xr-x 2017-05-24 17:40 OMVSKERN 2223 remotexf File 750 rwxr-x--- 2020-02-06 04:35 OMVSKERN 2023424 sdbu Other than giving the users UID(0), how can I allow them to issue LPSTAT (and other commands) successfully? Thanks and regards, David -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN