Re: [MVS-OE] Other user trying to run my shell script gets "FSUM7351 not found" error
Hmm... I can't recreate any case where I can run another user's program without the full path having both r and x (didn't try it without r), regardless of it being executed with just the full path or from a script with the full path. I must have done something that I don't recall. Oh well. It makes sense that it wouldn't work one way but not the other. From: IBM Mainframe Discussion List on behalf of Paul Gilmartin <000433f07816-dmarc-requ...@listserv.ua.edu> Sent: Wednesday, November 18, 2020 1:49 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: [MVS-OE] Other user trying to run my shell script gets "FSUM7351 not found" error On 2020-11-18, at 10:16:41, Frank Swarbrick wrote: > > Can you explain the difference between executing a script that executes the > program, which requires this, while running the program directly (with a > fully qualified path) does not? > I can hardly imagine a case where a program with a non-searchable directory in its path can be "[run] directly (with a fully qualified path)" but not from "a script that executes the program." Does the script also use a fully qualified path? I'm skeptical without seeing a detailed example such as: myscript: #! /bin/sh -x /u/dvfjs/rocket/bin/curl chmod a-x /u/dvfjs/rocket/bin ls -lid /u/dvfjs/rocket/bin/curl # should get permission denied. cat myscript chmod a+rx myscript ls -lid myscript ./myscript# should get permission denied. # while: /u/dvfjs/rocket/bin/curl # should likewise get permission denied. # If it succeeds it's because the z/OS kernel breaks # (more precisely fails to enforce) the rules. # That should be subject to APAR. > > From: Kirk Wolf > Sent: Wednesday, November 18, 2020 10:13 AM > > You need directory search (x) permission for every directory in the path in > order to access a file or subdirectory with a known name. > > So in your example, the user must have search (x) permission on all of > these: > > /u > /u/dvfjs > /u/dvfjs/rocket > /u/dvfjs/rocket/bin -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Other user trying to run my shell script gets "FSUM7351 not found" error
Yes, you have been able to have a defaul UID and GID for lo these many years. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Paul Gilmartin <000433f07816-dmarc-requ...@listserv.ua.edu> Sent: Tuesday, November 17, 2020 12:14 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Other user trying to run my shell script gets "FSUM7351 not found" error On Tue, 17 Nov 2020 16:59:13 +, Frank Swarbrick wrote: >Why would PATH have any effect here, since I have the fully qualified path >specified? > /u/dvfjs/rocket/bin/curl itself might issue an execvp() call or depend on having a current working directory. It's kinda like needing dependencies in a STEPLIB. Isn't there nowadays a facility to create by default a unique OMVS segment when a user lacking one is dubbed? > >From: Frank Swarbrick >Sent: Monday, November 16, 2020 2:03 PM > >//STDPARM DD * >SH /u/dvfjs/jira_test > >STDERR: >FSUM1012 The initial working directory was not specified. >FSUM1006 A shell was not specified. Processing continues using the default >shell name. >+ echo **before** >+ /u/dvfjs/rocket/bin/curl --help >/u/dvfjs/rocket/bin/curl: /u/dvfjs/jira_test 4: >+ echo **after** > >STDOUT: >**before** >**after** -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: [MVS-OE] Other user trying to run my shell script gets "FSUM7351 not found" error
On 2020-11-18, at 10:16:41, Frank Swarbrick wrote: > > Can you explain the difference between executing a script that executes the > program, which requires this, while running the program directly (with a > fully qualified path) does not? > I can hardly imagine a case where a program with a non-searchable directory in its path can be "[run] directly (with a fully qualified path)" but not from "a script that executes the program." Does the script also use a fully qualified path? I'm skeptical without seeing a detailed example such as: myscript: #! /bin/sh -x /u/dvfjs/rocket/bin/curl chmod a-x /u/dvfjs/rocket/bin ls -lid /u/dvfjs/rocket/bin/curl # should get permission denied. cat myscript chmod a+rx myscript ls -lid myscript ./myscript# should get permission denied. # while: /u/dvfjs/rocket/bin/curl # should likewise get permission denied. # If it succeeds it's because the z/OS kernel breaks # (more precisely fails to enforce) the rules. # That should be subject to APAR. > > From: Kirk Wolf > Sent: Wednesday, November 18, 2020 10:13 AM > > You need directory search (x) permission for every directory in the path in > order to access a file or subdirectory with a known name. > > So in your example, the user must have search (x) permission on all of > these: > > /u > /u/dvfjs > /u/dvfjs/rocket > /u/dvfjs/rocket/bin -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: [MVS-OE] [External] Re: [MVS-OE] Other user trying to run my shell script gets "FSUM7351 not found" error
On Wed, Nov 18, 2020 at 11:16 AM Frank Swarbrick < frank.swarbr...@outlook.com> wrote: > Yep. Thanks. > > Can you explain the difference between executing a script that executes > the program, which requires this, while running the program directly (with > a fully qualified path) does not? > > No, I don't see any reason why there should be a difference (for the same user) -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: [MVS-OE] [External] Re: [MVS-OE] Other user trying to run my shell script gets "FSUM7351 not found" error
Yep. Thanks. Can you explain the difference between executing a script that executes the program, which requires this, while running the program directly (with a fully qualified path) does not? From: IBM Mainframe Discussion List on behalf of Kirk Wolf Sent: Wednesday, November 18, 2020 10:13 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: [MVS-OE] [External] Re: [MVS-OE] Other user trying to run my shell script gets "FSUM7351 not found" error You need directory search (x) permission for every directory in the path in order to access a file or subdirectory with a known name. So in your example, the user must have search (x) permission on all of these: /u /u/dvfjs /u/dvfjs/rocket /u/dvfjs/rocket/bin Kirk Wolf On Tue, Nov 17, 2020 at 3:25 PM Frank Swarbrick wrote: > OK, issue resolved. I not only had to set the read and execute bits on > the program itself (curl), but also on the entire directory path. Not sure > what the difference is in regard to executing the program directly vs > inside a script, but hey. > > > From: MVS OpenEdition on behalf of Pommier, Rex < > rpomm...@sfgmembers.com> > Sent: Tuesday, November 17, 2020 12:47 PM > To: mvs...@vm.marist.edu > Subject: Re: [MVS-OE] [External] Re: [MVS-OE] Other user trying to run my > shell script gets "FSUM7351 not found" error > > Except Frank said the other user could run curl directly, just not if he > was using Frank's script. > > -Original Message- > From: MVS OpenEdition On Behalf Of Kirk Wolf > Sent: Tuesday, November 17, 2020 1:10 PM > To: mvs...@vm.marist.edu > Subject: [External] Re: [MVS-OE] Other user trying to run my shell script > gets "FSUM7351 not found" error > > Perhaps the user doesn't have read/search/execute permissions to the full > directory path of /u/dvfjs/rocket/bin/curl ? > > Kirk Wolf > Dovetailed Technologies > http://dovetail.com > > > On Mon, Nov 16, 2020 at 12:51 PM Frank Swarbrick < > frank.swarbr...@outlook.com> wrote: > > > Any thoughts on this? I can execute this job and have no issue. I'm > > trying to let another developer run it. He's able to run > > /u/dvfjs/rocket/bin/curl directly (in STDPARM, following "SH ".) But > > if he executes my shell script (/u/dvfjs/jira_test) he gets > > "/u/dvfjs/rocket/bin/curl: /u/dvfjs/jira_test 4: FSUM7351 not found". > > > > I've set the read and execution bits for user, group and other for > > both curl and the jira_test shell script. Since the "echo" commands > > are working for him, he's obviously able to execute my shell script > > itself. What else might I be missing? The other developer has an > > OMVS segment, but he doesn't have an initial working directory or > default shell configured yet. > > Could that be the issue? If so, what specifically is causing this > > particular issue? > > > > JCL: > > //DVRJZTST JOB ,'Test',CLASS=C,REGION=0M,NOTIFY=&SYSUID > > //* > > //UNIX EXEC PGM=BPXBATCH > > //STDOUT DD SYSOUT=* > > //STDERR DD SYSOUT=* > > //STDPARM DD * > > SH /u/dvfjs/jira_test > > /* > > > > /u/dvfjs/jira_test: > > #!/bin/sh -x > > > > echo **before** > > /u/dvfjs/rocket/bin/curl --help > > echo **after** > > > > File attributes: > > -sh|DVFJS:/u/dvfjs:>ls -FalTHp /u/dvfjs/jira_test > > - untaggedT=off -rwxr-xr-x 1 DVFJSDEPT9971 77 Nov 16 > > 12:24 /u/dvfjs/jira_test > > -sh|DVFJS:/u/dvfjs:>ls -FalTHp /u/dvfjs/rocket/bin/curl > > - untaggedT=off -rwxr-xr-x 1 DVFJSDEPT9971 21266432 Nov > > 1 2019 /u/dvfjs/rocket/bin/curl > > > > STDERR: > > FSUM1012 The initial working directory was not specified. > > FSUM1006 A shell was not specified. Processing continues using the > > default shell name. > > + echo **before** > > + /u/dvfjs/rocket/bin/curl --help > > /u/dvfjs/rocket/bin/curl: /u/dvfjs/jira_test 4: > > + echo **after** > > > > STDOUT: > > **before** > > **after** > > > > > > > > -- > > For MVS-OE subscribe / signoff / archive access instructions, send > > email to lists...@vm.marist.edu with the message: INFO MVS-OE > > > > -- > For MVS-OE subscribe / signoff / archive access instructions, send email > to lists...@vm.marist.edu with the message: INFO MVS-OE > > > The information contained in th
Re: [MVS-OE] [External] Re: [MVS-OE] Other user trying to run my shell script gets "FSUM7351 not found" error
You need directory search (x) permission for every directory in the path in order to access a file or subdirectory with a known name. So in your example, the user must have search (x) permission on all of these: /u /u/dvfjs /u/dvfjs/rocket /u/dvfjs/rocket/bin Kirk Wolf On Tue, Nov 17, 2020 at 3:25 PM Frank Swarbrick wrote: > OK, issue resolved. I not only had to set the read and execute bits on > the program itself (curl), but also on the entire directory path. Not sure > what the difference is in regard to executing the program directly vs > inside a script, but hey. > > > From: MVS OpenEdition on behalf of Pommier, Rex < > rpomm...@sfgmembers.com> > Sent: Tuesday, November 17, 2020 12:47 PM > To: mvs...@vm.marist.edu > Subject: Re: [MVS-OE] [External] Re: [MVS-OE] Other user trying to run my > shell script gets "FSUM7351 not found" error > > Except Frank said the other user could run curl directly, just not if he > was using Frank's script. > > -Original Message- > From: MVS OpenEdition On Behalf Of Kirk Wolf > Sent: Tuesday, November 17, 2020 1:10 PM > To: mvs...@vm.marist.edu > Subject: [External] Re: [MVS-OE] Other user trying to run my shell script > gets "FSUM7351 not found" error > > Perhaps the user doesn't have read/search/execute permissions to the full > directory path of /u/dvfjs/rocket/bin/curl ? > > Kirk Wolf > Dovetailed Technologies > http://dovetail.com > > > On Mon, Nov 16, 2020 at 12:51 PM Frank Swarbrick < > frank.swarbr...@outlook.com> wrote: > > > Any thoughts on this? I can execute this job and have no issue. I'm > > trying to let another developer run it. He's able to run > > /u/dvfjs/rocket/bin/curl directly (in STDPARM, following "SH ".) But > > if he executes my shell script (/u/dvfjs/jira_test) he gets > > "/u/dvfjs/rocket/bin/curl: /u/dvfjs/jira_test 4: FSUM7351 not found". > > > > I've set the read and execution bits for user, group and other for > > both curl and the jira_test shell script. Since the "echo" commands > > are working for him, he's obviously able to execute my shell script > > itself. What else might I be missing? The other developer has an > > OMVS segment, but he doesn't have an initial working directory or > default shell configured yet. > > Could that be the issue? If so, what specifically is causing this > > particular issue? > > > > JCL: > > //DVRJZTST JOB ,'Test',CLASS=C,REGION=0M,NOTIFY=&SYSUID > > //* > > //UNIX EXEC PGM=BPXBATCH > > //STDOUT DD SYSOUT=* > > //STDERR DD SYSOUT=* > > //STDPARM DD * > > SH /u/dvfjs/jira_test > > /* > > > > /u/dvfjs/jira_test: > > #!/bin/sh -x > > > > echo **before** > > /u/dvfjs/rocket/bin/curl --help > > echo **after** > > > > File attributes: > > -sh|DVFJS:/u/dvfjs:>ls -FalTHp /u/dvfjs/jira_test > > - untaggedT=off -rwxr-xr-x 1 DVFJSDEPT9971 77 Nov 16 > > 12:24 /u/dvfjs/jira_test > > -sh|DVFJS:/u/dvfjs:>ls -FalTHp /u/dvfjs/rocket/bin/curl > > - untaggedT=off -rwxr-xr-x 1 DVFJSDEPT9971 21266432 Nov > > 1 2019 /u/dvfjs/rocket/bin/curl > > > > STDERR: > > FSUM1012 The initial working directory was not specified. > > FSUM1006 A shell was not specified. Processing continues using the > > default shell name. > > + echo **before** > > + /u/dvfjs/rocket/bin/curl --help > > /u/dvfjs/rocket/bin/curl: /u/dvfjs/jira_test 4: > > + echo **after** > > > > STDOUT: > > **before** > > **after** > > > > > > > > -- > > For MVS-OE subscribe / signoff / archive access instructions, send > > email to lists...@vm.marist.edu with the message: INFO MVS-OE > > > > -- > For MVS-OE subscribe / signoff / archive access instructions, send email > to lists...@vm.marist.edu with the message: INFO MVS-OE > > > The information contained in this message is confidential, protected from > disclosure and may be legally privileged. If the reader of this message is > not the intended recipient or an employee or agent responsible for > delivering this message to the intended recipient, you are hereby notified > that any disclosure, distribution, copying, or any action taken or action > omitted in reliance on it, is strictly prohibited and may be unlawful. If > you have received t
Re: [MVS-OE] [External] Re: [MVS-OE] Other user trying to run my shell script gets "FSUM7351 not found" error
Unknown, since I tested it only with both bits set. From: IBM Mainframe Discussion List on behalf of Seymour J Metz Sent: Wednesday, November 18, 2020 6:36 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: [MVS-OE] [External] Re: [MVS-OE] Other user trying to run my shell script gets "FSUM7351 not found" error Did you need the read bit on the entire path, or only the execute bit? -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Frank Swarbrick Sent: Tuesday, November 17, 2020 4:24 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: [MVS-OE] [External] Re: [MVS-OE] Other user trying to run my shell script gets "FSUM7351 not found" error OK, issue resolved. I not only had to set the read and execute bits on the program itself (curl), but also on the entire directory path. Not sure what the difference is in regard to executing the program directly vs inside a script, but hey. From: MVS OpenEdition on behalf of Pommier, Rex Sent: Tuesday, November 17, 2020 12:47 PM To: mvs...@vm.marist.edu Subject: Re: [MVS-OE] [External] Re: [MVS-OE] Other user trying to run my shell script gets "FSUM7351 not found" error Except Frank said the other user could run curl directly, just not if he was using Frank's script. -Original Message- From: MVS OpenEdition On Behalf Of Kirk Wolf Sent: Tuesday, November 17, 2020 1:10 PM To: mvs...@vm.marist.edu Subject: [External] Re: [MVS-OE] Other user trying to run my shell script gets "FSUM7351 not found" error Perhaps the user doesn't have read/search/execute permissions to the full directory path of /u/dvfjs/rocket/bin/curl ? Kirk Wolf Dovetailed Technologies http://secure-web.cisco.com/1lyBFXiveOds6XamK3ZgQmj8A7-ybpz8sz21wX2PPg7b0fQfZiVzOAq2aIdMQt2YtbZW3F9lFUYCwahSfc9lZA4FEjMRfIaLAZIyh3zjGSyeG5OMziI3LEmko0rELjoIMRGE-MnAy7zdVyShSCjTbphBNHy7qaHA3zDOloSe-CPHx3jiiMkbRWkTy3cxRxsBHN8oK2CUOeLKuBq_3IxW3umtjD7E16Vz35v3Hhhl2w68ihmgf6F_6F2FExu4nsrr46vy0S1bW3aygSIy85l1rTEy5U3YbJMsLPAOpReHzePb64_uuTeEuOmbitquoOOvi3n-7p7dpkQLeRhgiiVU9PldzauUpBNexw4c6eIRBAylqA7UGeebw5bo9yjVopq4u0rojPakPp1WGt7IJah0e-PhbnEZ1FOMY4oBKeLQxrJGt5tFfsoWJlRed6rHFV87K/http%3A%2F%2Fdovetail.com On Mon, Nov 16, 2020 at 12:51 PM Frank Swarbrick < frank.swarbr...@outlook.com> wrote: > Any thoughts on this? I can execute this job and have no issue. I'm > trying to let another developer run it. He's able to run > /u/dvfjs/rocket/bin/curl directly (in STDPARM, following "SH ".) But > if he executes my shell script (/u/dvfjs/jira_test) he gets > "/u/dvfjs/rocket/bin/curl: /u/dvfjs/jira_test 4: FSUM7351 not found". > > I've set the read and execution bits for user, group and other for > both curl and the jira_test shell script. Since the "echo" commands > are working for him, he's obviously able to execute my shell script > itself. What else might I be missing? The other developer has an > OMVS segment, but he doesn't have an initial working directory or default > shell configured yet. > Could that be the issue? If so, what specifically is causing this > particular issue? > > JCL: > //DVRJZTST JOB ,'Test',CLASS=C,REGION=0M,NOTIFY=&SYSUID > //* > //UNIX EXEC PGM=BPXBATCH > //STDOUT DD SYSOUT=* > //STDERR DD SYSOUT=* > //STDPARM DD * > SH /u/dvfjs/jira_test > /* > > /u/dvfjs/jira_test: > #!/bin/sh -x > > echo **before** > /u/dvfjs/rocket/bin/curl --help > echo **after** > > File attributes: > -sh|DVFJS:/u/dvfjs:>ls -FalTHp /u/dvfjs/jira_test > - untaggedT=off -rwxr-xr-x 1 DVFJSDEPT9971 77 Nov 16 > 12:24 /u/dvfjs/jira_test > -sh|DVFJS:/u/dvfjs:>ls -FalTHp /u/dvfjs/rocket/bin/curl > - untaggedT=off -rwxr-xr-x 1 DVFJSDEPT9971 21266432 Nov > 1 2019 /u/dvfjs/rocket/bin/curl > > STDERR: > FSUM1012 The initial working directory was not specified. > FSUM1006 A shell was not specified. Processing continues using the > default shell name. > + echo **before** > + /u/dvfjs/rocket/bin/curl --help > /u/dvfjs/rocket/bin/curl: /u/dvfjs/jira_test 4: > + echo **after** > > STDOUT: > **before** > **after** > > > > -- > For MVS-OE subscribe / signoff / archive access instructions, send > email to lists...@vm.marist.edu with the message: INFO MVS-OE > -- For MVS-OE subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO MVS-OE The information contained in this message is confidential, protected from disclosur
Re: [MVS-OE] [External] Re: [MVS-OE] Other user trying to run my shell script gets "FSUM7351 not found" error
On Wed, 18 Nov 2020 13:36:26 +, Seymour J Metz wrote: >Did you need the read bit on the entire path, or only the execute bit? > It should depend on whether the path involves a wildcard expansion. And /path/to/script requires execute permission on script; sh /path/to/script does not. -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: [MVS-OE] [External] Re: [MVS-OE] Other user trying to run my shell script gets "FSUM7351 not found" error
Did you need the read bit on the entire path, or only the execute bit? -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Frank Swarbrick Sent: Tuesday, November 17, 2020 4:24 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: [MVS-OE] [External] Re: [MVS-OE] Other user trying to run my shell script gets "FSUM7351 not found" error OK, issue resolved. I not only had to set the read and execute bits on the program itself (curl), but also on the entire directory path. Not sure what the difference is in regard to executing the program directly vs inside a script, but hey. From: MVS OpenEdition on behalf of Pommier, Rex Sent: Tuesday, November 17, 2020 12:47 PM To: mvs...@vm.marist.edu Subject: Re: [MVS-OE] [External] Re: [MVS-OE] Other user trying to run my shell script gets "FSUM7351 not found" error Except Frank said the other user could run curl directly, just not if he was using Frank's script. -Original Message- From: MVS OpenEdition On Behalf Of Kirk Wolf Sent: Tuesday, November 17, 2020 1:10 PM To: mvs...@vm.marist.edu Subject: [External] Re: [MVS-OE] Other user trying to run my shell script gets "FSUM7351 not found" error Perhaps the user doesn't have read/search/execute permissions to the full directory path of /u/dvfjs/rocket/bin/curl ? Kirk Wolf Dovetailed Technologies http://secure-web.cisco.com/1lyBFXiveOds6XamK3ZgQmj8A7-ybpz8sz21wX2PPg7b0fQfZiVzOAq2aIdMQt2YtbZW3F9lFUYCwahSfc9lZA4FEjMRfIaLAZIyh3zjGSyeG5OMziI3LEmko0rELjoIMRGE-MnAy7zdVyShSCjTbphBNHy7qaHA3zDOloSe-CPHx3jiiMkbRWkTy3cxRxsBHN8oK2CUOeLKuBq_3IxW3umtjD7E16Vz35v3Hhhl2w68ihmgf6F_6F2FExu4nsrr46vy0S1bW3aygSIy85l1rTEy5U3YbJMsLPAOpReHzePb64_uuTeEuOmbitquoOOvi3n-7p7dpkQLeRhgiiVU9PldzauUpBNexw4c6eIRBAylqA7UGeebw5bo9yjVopq4u0rojPakPp1WGt7IJah0e-PhbnEZ1FOMY4oBKeLQxrJGt5tFfsoWJlRed6rHFV87K/http%3A%2F%2Fdovetail.com On Mon, Nov 16, 2020 at 12:51 PM Frank Swarbrick < frank.swarbr...@outlook.com> wrote: > Any thoughts on this? I can execute this job and have no issue. I'm > trying to let another developer run it. He's able to run > /u/dvfjs/rocket/bin/curl directly (in STDPARM, following "SH ".) But > if he executes my shell script (/u/dvfjs/jira_test) he gets > "/u/dvfjs/rocket/bin/curl: /u/dvfjs/jira_test 4: FSUM7351 not found". > > I've set the read and execution bits for user, group and other for > both curl and the jira_test shell script. Since the "echo" commands > are working for him, he's obviously able to execute my shell script > itself. What else might I be missing? The other developer has an > OMVS segment, but he doesn't have an initial working directory or default > shell configured yet. > Could that be the issue? If so, what specifically is causing this > particular issue? > > JCL: > //DVRJZTST JOB ,'Test',CLASS=C,REGION=0M,NOTIFY=&SYSUID > //* > //UNIX EXEC PGM=BPXBATCH > //STDOUT DD SYSOUT=* > //STDERR DD SYSOUT=* > //STDPARM DD * > SH /u/dvfjs/jira_test > /* > > /u/dvfjs/jira_test: > #!/bin/sh -x > > echo **before** > /u/dvfjs/rocket/bin/curl --help > echo **after** > > File attributes: > -sh|DVFJS:/u/dvfjs:>ls -FalTHp /u/dvfjs/jira_test > - untaggedT=off -rwxr-xr-x 1 DVFJSDEPT9971 77 Nov 16 > 12:24 /u/dvfjs/jira_test > -sh|DVFJS:/u/dvfjs:>ls -FalTHp /u/dvfjs/rocket/bin/curl > - untaggedT=off -rwxr-xr-x 1 DVFJSDEPT9971 21266432 Nov > 1 2019 /u/dvfjs/rocket/bin/curl > > STDERR: > FSUM1012 The initial working directory was not specified. > FSUM1006 A shell was not specified. Processing continues using the > default shell name. > + echo **before** > + /u/dvfjs/rocket/bin/curl --help > /u/dvfjs/rocket/bin/curl: /u/dvfjs/jira_test 4: > + echo **after** > > STDOUT: > **before** > **after** > > > > -- > For MVS-OE subscribe / signoff / archive access instructions, send > email to lists...@vm.marist.edu with the message: INFO MVS-OE > -- For MVS-OE subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO MVS-OE The information contained in this message is confidential, protected from disclosure and may be legally privileged. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any disclosure, distribution, copying, or any action taken or action omitted in reliance on it, is strictly prohibited and may be unl
Re: [MVS-OE] [External] Re: [MVS-OE] Other user trying to run my shell script gets "FSUM7351 not found" error
OK, issue resolved. I not only had to set the read and execute bits on the program itself (curl), but also on the entire directory path. Not sure what the difference is in regard to executing the program directly vs inside a script, but hey. From: MVS OpenEdition on behalf of Pommier, Rex Sent: Tuesday, November 17, 2020 12:47 PM To: mvs...@vm.marist.edu Subject: Re: [MVS-OE] [External] Re: [MVS-OE] Other user trying to run my shell script gets "FSUM7351 not found" error Except Frank said the other user could run curl directly, just not if he was using Frank's script. -Original Message- From: MVS OpenEdition On Behalf Of Kirk Wolf Sent: Tuesday, November 17, 2020 1:10 PM To: mvs...@vm.marist.edu Subject: [External] Re: [MVS-OE] Other user trying to run my shell script gets "FSUM7351 not found" error Perhaps the user doesn't have read/search/execute permissions to the full directory path of /u/dvfjs/rocket/bin/curl ? Kirk Wolf Dovetailed Technologies http://dovetail.com On Mon, Nov 16, 2020 at 12:51 PM Frank Swarbrick < frank.swarbr...@outlook.com> wrote: > Any thoughts on this? I can execute this job and have no issue. I'm > trying to let another developer run it. He's able to run > /u/dvfjs/rocket/bin/curl directly (in STDPARM, following "SH ".) But > if he executes my shell script (/u/dvfjs/jira_test) he gets > "/u/dvfjs/rocket/bin/curl: /u/dvfjs/jira_test 4: FSUM7351 not found". > > I've set the read and execution bits for user, group and other for > both curl and the jira_test shell script. Since the "echo" commands > are working for him, he's obviously able to execute my shell script > itself. What else might I be missing? The other developer has an > OMVS segment, but he doesn't have an initial working directory or default > shell configured yet. > Could that be the issue? If so, what specifically is causing this > particular issue? > > JCL: > //DVRJZTST JOB ,'Test',CLASS=C,REGION=0M,NOTIFY=&SYSUID > //* > //UNIX EXEC PGM=BPXBATCH > //STDOUT DD SYSOUT=* > //STDERR DD SYSOUT=* > //STDPARM DD * > SH /u/dvfjs/jira_test > /* > > /u/dvfjs/jira_test: > #!/bin/sh -x > > echo **before** > /u/dvfjs/rocket/bin/curl --help > echo **after** > > File attributes: > -sh|DVFJS:/u/dvfjs:>ls -FalTHp /u/dvfjs/jira_test > - untaggedT=off -rwxr-xr-x 1 DVFJSDEPT9971 77 Nov 16 > 12:24 /u/dvfjs/jira_test > -sh|DVFJS:/u/dvfjs:>ls -FalTHp /u/dvfjs/rocket/bin/curl > - untaggedT=off -rwxr-xr-x 1 DVFJSDEPT9971 21266432 Nov > 1 2019 /u/dvfjs/rocket/bin/curl > > STDERR: > FSUM1012 The initial working directory was not specified. > FSUM1006 A shell was not specified. Processing continues using the > default shell name. > + echo **before** > + /u/dvfjs/rocket/bin/curl --help > /u/dvfjs/rocket/bin/curl: /u/dvfjs/jira_test 4: > + echo **after** > > STDOUT: > **before** > **after** > > > > -- > For MVS-OE subscribe / signoff / archive access instructions, send > email to lists...@vm.marist.edu with the message: INFO MVS-OE > -- For MVS-OE subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO MVS-OE The information contained in this message is confidential, protected from disclosure and may be legally privileged. If the reader of this message is not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any disclosure, distribution, copying, or any action taken or action omitted in reliance on it, is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by replying to this message and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. -- For MVS-OE subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO MVS-OE -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Other user trying to run my shell script gets "FSUM7351 not found" error
On Tue, 17 Nov 2020 16:59:13 +, Frank Swarbrick wrote: >Why would PATH have any effect here, since I have the fully qualified path >specified? > /u/dvfjs/rocket/bin/curl itself might issue an execvp() call or depend on having a current working directory. It's kinda like needing dependencies in a STEPLIB. Isn't there nowadays a facility to create by default a unique OMVS segment when a user lacking one is dubbed? > >From: Frank Swarbrick >Sent: Monday, November 16, 2020 2:03 PM > >//STDPARM DD * >SH /u/dvfjs/jira_test > >STDERR: >FSUM1012 The initial working directory was not specified. >FSUM1006 A shell was not specified. Processing continues using the default >shell name. >+ echo **before** >+ /u/dvfjs/rocket/bin/curl --help >/u/dvfjs/rocket/bin/curl: /u/dvfjs/jira_test 4: >+ echo **after** > >STDOUT: >**before** >**after** -- gil -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Other user trying to run my shell script gets "FSUM7351 not found" error
You're right. Ghosties and ghoulies and things that go bump n the night? -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Frank Swarbrick Sent: Tuesday, November 17, 2020 11:59 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Other user trying to run my shell script gets "FSUM7351 not found" error Why would PATH have any effect here, since I have the fully qualified path specified? From: IBM Mainframe Discussion List on behalf of Seymour J Metz Sent: Tuesday, November 17, 2020 6:22 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Other user trying to run my shell script gets "FSUM7351 not found" error That sounds like PATH is different in the two cases. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Frank Swarbrick Sent: Monday, November 16, 2020 2:03 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Other user trying to run my shell script gets "FSUM7351 not found" error Any thoughts on this? I can execute this job and have no issue. I'm trying to let another developer run it. He's able to run /u/dvfjs/rocket/bin/curl directly (in STDPARM, following "SH ".) But if he executes my shell script (/u/dvfjs/jira_test) he gets "/u/dvfjs/rocket/bin/curl: /u/dvfjs/jira_test 4: FSUM7351 not found". I've set the read and execution bits for user, group and other for both curl and the jira_test shell script. Since the "echo" commands are working for him, he's obviously able to execute my shell script itself. What else might I be missing? The other developer has an OMVS segment, but he doesn't have an initial working directory or default shell configured yet. Could that be the issue? If so, what specifically is causing this particular issue? JCL: //DVRJZTST JOB ,'Test',CLASS=C,REGION=0M,NOTIFY=&SYSUID //* //UNIX EXEC PGM=BPXBATCH //STDOUT DD SYSOUT=* //STDERR DD SYSOUT=* //STDPARM DD * SH /u/dvfjs/jira_test /* /u/dvfjs/jira_test: #!/bin/sh -x echo **before** /u/dvfjs/rocket/bin/curl --help echo **after** File attributes: -sh|DVFJS:/u/dvfjs:>ls -FalTHp /u/dvfjs/jira_test - untaggedT=off -rwxr-xr-x 1 DVFJSDEPT9971 77 Nov 16 12:24 /u/dvfjs/jira_test -sh|DVFJS:/u/dvfjs:>ls -FalTHp /u/dvfjs/rocket/bin/curl - untaggedT=off -rwxr-xr-x 1 DVFJSDEPT9971 21266432 Nov 1 2019 /u/dvfjs/rocket/bin/curl STDERR: FSUM1012 The initial working directory was not specified. FSUM1006 A shell was not specified. Processing continues using the default shell name. + echo **before** + /u/dvfjs/rocket/bin/curl --help /u/dvfjs/rocket/bin/curl: /u/dvfjs/jira_test 4: + echo **after** STDOUT: **before** **after** -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Other user trying to run my shell script gets "FSUM7351 not found" error
Why would PATH have any effect here, since I have the fully qualified path specified? From: IBM Mainframe Discussion List on behalf of Seymour J Metz Sent: Tuesday, November 17, 2020 6:22 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Other user trying to run my shell script gets "FSUM7351 not found" error That sounds like PATH is different in the two cases. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Frank Swarbrick Sent: Monday, November 16, 2020 2:03 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Other user trying to run my shell script gets "FSUM7351 not found" error Any thoughts on this? I can execute this job and have no issue. I'm trying to let another developer run it. He's able to run /u/dvfjs/rocket/bin/curl directly (in STDPARM, following "SH ".) But if he executes my shell script (/u/dvfjs/jira_test) he gets "/u/dvfjs/rocket/bin/curl: /u/dvfjs/jira_test 4: FSUM7351 not found". I've set the read and execution bits for user, group and other for both curl and the jira_test shell script. Since the "echo" commands are working for him, he's obviously able to execute my shell script itself. What else might I be missing? The other developer has an OMVS segment, but he doesn't have an initial working directory or default shell configured yet. Could that be the issue? If so, what specifically is causing this particular issue? JCL: //DVRJZTST JOB ,'Test',CLASS=C,REGION=0M,NOTIFY=&SYSUID //* //UNIX EXEC PGM=BPXBATCH //STDOUT DD SYSOUT=* //STDERR DD SYSOUT=* //STDPARM DD * SH /u/dvfjs/jira_test /* /u/dvfjs/jira_test: #!/bin/sh -x echo **before** /u/dvfjs/rocket/bin/curl --help echo **after** File attributes: -sh|DVFJS:/u/dvfjs:>ls -FalTHp /u/dvfjs/jira_test - untaggedT=off -rwxr-xr-x 1 DVFJSDEPT9971 77 Nov 16 12:24 /u/dvfjs/jira_test -sh|DVFJS:/u/dvfjs:>ls -FalTHp /u/dvfjs/rocket/bin/curl - untaggedT=off -rwxr-xr-x 1 DVFJSDEPT9971 21266432 Nov 1 2019 /u/dvfjs/rocket/bin/curl STDERR: FSUM1012 The initial working directory was not specified. FSUM1006 A shell was not specified. Processing continues using the default shell name. + echo **before** + /u/dvfjs/rocket/bin/curl --help /u/dvfjs/rocket/bin/curl: /u/dvfjs/jira_test 4: + echo **after** STDOUT: **before** **after** -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: Other user trying to run my shell script gets "FSUM7351 not found" error
That sounds like PATH is different in the two cases. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Frank Swarbrick Sent: Monday, November 16, 2020 2:03 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Other user trying to run my shell script gets "FSUM7351 not found" error Any thoughts on this? I can execute this job and have no issue. I'm trying to let another developer run it. He's able to run /u/dvfjs/rocket/bin/curl directly (in STDPARM, following "SH ".) But if he executes my shell script (/u/dvfjs/jira_test) he gets "/u/dvfjs/rocket/bin/curl: /u/dvfjs/jira_test 4: FSUM7351 not found". I've set the read and execution bits for user, group and other for both curl and the jira_test shell script. Since the "echo" commands are working for him, he's obviously able to execute my shell script itself. What else might I be missing? The other developer has an OMVS segment, but he doesn't have an initial working directory or default shell configured yet. Could that be the issue? If so, what specifically is causing this particular issue? JCL: //DVRJZTST JOB ,'Test',CLASS=C,REGION=0M,NOTIFY=&SYSUID //* //UNIX EXEC PGM=BPXBATCH //STDOUT DD SYSOUT=* //STDERR DD SYSOUT=* //STDPARM DD * SH /u/dvfjs/jira_test /* /u/dvfjs/jira_test: #!/bin/sh -x echo **before** /u/dvfjs/rocket/bin/curl --help echo **after** File attributes: -sh|DVFJS:/u/dvfjs:>ls -FalTHp /u/dvfjs/jira_test - untaggedT=off -rwxr-xr-x 1 DVFJSDEPT9971 77 Nov 16 12:24 /u/dvfjs/jira_test -sh|DVFJS:/u/dvfjs:>ls -FalTHp /u/dvfjs/rocket/bin/curl - untaggedT=off -rwxr-xr-x 1 DVFJSDEPT9971 21266432 Nov 1 2019 /u/dvfjs/rocket/bin/curl STDERR: FSUM1012 The initial working directory was not specified. FSUM1006 A shell was not specified. Processing continues using the default shell name. + echo **before** + /u/dvfjs/rocket/bin/curl --help /u/dvfjs/rocket/bin/curl: /u/dvfjs/jira_test 4: + echo **after** STDOUT: **before** **after** -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Other user trying to run my shell script gets "FSUM7351 not found" error
Any thoughts on this? I can execute this job and have no issue. I'm trying to let another developer run it. He's able to run /u/dvfjs/rocket/bin/curl directly (in STDPARM, following "SH ".) But if he executes my shell script (/u/dvfjs/jira_test) he gets "/u/dvfjs/rocket/bin/curl: /u/dvfjs/jira_test 4: FSUM7351 not found". I've set the read and execution bits for user, group and other for both curl and the jira_test shell script. Since the "echo" commands are working for him, he's obviously able to execute my shell script itself. What else might I be missing? The other developer has an OMVS segment, but he doesn't have an initial working directory or default shell configured yet. Could that be the issue? If so, what specifically is causing this particular issue? JCL: //DVRJZTST JOB ,'Test',CLASS=C,REGION=0M,NOTIFY=&SYSUID //* //UNIX EXEC PGM=BPXBATCH //STDOUT DD SYSOUT=* //STDERR DD SYSOUT=* //STDPARM DD * SH /u/dvfjs/jira_test /* /u/dvfjs/jira_test: #!/bin/sh -x echo **before** /u/dvfjs/rocket/bin/curl --help echo **after** File attributes: -sh|DVFJS:/u/dvfjs:>ls -FalTHp /u/dvfjs/jira_test - untaggedT=off -rwxr-xr-x 1 DVFJSDEPT9971 77 Nov 16 12:24 /u/dvfjs/jira_test -sh|DVFJS:/u/dvfjs:>ls -FalTHp /u/dvfjs/rocket/bin/curl - untaggedT=off -rwxr-xr-x 1 DVFJSDEPT9971 21266432 Nov 1 2019 /u/dvfjs/rocket/bin/curl STDERR: FSUM1012 The initial working directory was not specified. FSUM1006 A shell was not specified. Processing continues using the default shell name. + echo **before** + /u/dvfjs/rocket/bin/curl --help /u/dvfjs/rocket/bin/curl: /u/dvfjs/jira_test 4: + echo **after** STDOUT: **before** **after** -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN