?
Solved

CHMOD Error

Posted on 2013-10-29
8
Medium Priority
?
917 Views
Last Modified: 2014-01-10
One of our developers is attempting to use GMAKE in QP2TERM. He is getting a permissions error:

/QOpenSys/usr/bin/-sh: gmake: 0403-006 Execute permission denied

I attempted to do a chmod 777 /QIBM/ProdData/DeveloperTools/qsh/bin/gmake

When I do this, I get the following error:

0481-014 chmod: not all requested changes were made to gmake

I tried to "cd" to the directory with GMAKE in it, but that hasn't helped.

Any ideas?
0
Comment
Question by:Matthew Roessner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 16

Expert Comment

by:theo kouwenhoven
ID: 39609105
Go to a as/400 (iSeries) Green screen and use the WRKAUT command :-)
0
 
LVL 35

Expert Comment

by:Gary Patterson
ID: 39609360
cd to folder containing gmake
ls -l

Post results.
0
 
LVL 1

Author Comment

by:Matthew Roessner
ID: 39609400
lrwxrwxrwx    1 qsys     0                54 Oct 14 07:35 del -> /QSYS.LIB/QAPTL.LIB/DEL.PGM                
-rwx---r-x    1 qsys     0              2377 Aug 31 2007  edtstmf                                          
-rwx---r-x    1 qsys     0              2771 Aug 31 2007  ez                                                
-rwx---r-x    1 qsys     0              2769 Aug 31 2007  ezmrg                                            
lrwxrwxrwx    1 qsys     0                56 Oct 14 07:35 flex -> /QSYS.LIB/QAPTL.LIB/FLEX.PGM              
lrwxrwxrwx    1 qsys     0                56 Oct 14 07:35 gawk -> /QSYS.LIB/QAPTL.LIB/GAWK.PGM              
lrwxrwxrwx    1 qsys     0                58 Oct 14 07:35 gmake -> /QSYS.LIB/QAPTL.LIB/GMAKE.PGM            
lrwxrwxrwx    1 qsys     0                56 Oct 14 07:35 gzip -> /QSYS.LIB/QAPTL.LIB/GZIP.PGM              
lrwxrwxrwx    1 qsys     0                54 Oct 14 07:35 icc -> /QSYS.LIB/QAPTL.LIB/ICC.PGM                
lrwxrwxrwx    1 qsys     0                52 Oct 14 07:35 ld -> /QSYS.LIB/QAPTL.LIB/LD.PGM                  
lrwxrwxrwx    1 qsys     0                68 Oct 14 07:35 makedepend -> /QSYS.LIB/QAPTL.LIB/MAKEDEPEND.PGM  
-rwx---r-x    1 qsys     0              2442 Aug 31 2007  mred                                              
-rwx---r-x    1 qsys     0              2370 Aug 31 2007  mrhex                                            
lrwxrwxrwx    1 qsys     0                52 Oct 14 07:35 ps -> /QSYS.LIB/QAPTL.LIB/PS.PGM                  
lrwxrwxrwx    1 qsys     0                54 Oct 14 07:35 qar -> /QSYS.LIB/QAPTL.LIB/QAR.PGM                
-rwx---r-x    1 qsys     0              2375 Aug 31 2007  review
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 35

Expert Comment

by:Gary Patterson
ID: 39609565
lrwxrwxrwx    1 qsys     0                58 Oct 14 07:35 gmake -> /QSYS.LIB/QAPTL.LIB/GMAKE.PGM        

This means that "gmake" is a symbolic link to the native *PGM object QAPTL/GMAKE.  

So in addition to having the correct Posix rights to the gmake link, you'll probably also need to make sure your developer has adequate rights to the program object (using EDTOBJAUT, for example) in order to execute it.
0
 
LVL 27

Expert Comment

by:tliotta
ID: 39613392
Normally, QAPTL/GMAKE should have *PUBLIC *USE. Library QAPTL would be the same.

Has this developer had success before doing related work in PASE? The problem isn't necessarily with permissions for gmake itself. Can you show the exact statements that result in the error?

Tom
0
 
LVL 1

Author Comment

by:Matthew Roessner
ID: 39616428
Our developers haven't done much in PASE before, so this is uncharted territory...  I will check with the developer and will see if I can get the exact statements he is executing...
0
 
LVL 1

Author Comment

by:Matthew Roessner
ID: 39625308
Our developer is essentially trying to do the following, just as an example:

From within QP2Term:

export PATH=/QIBM/ProdData/DeveloperTools/qsh/bin:/usr/bin:$PATH

Then run the following:

gmake -v

When he runs this command, he gets the following error:

/QOpenSys/usr/bin/-sh: gmake: 0403-006 Execute permission denied.
0
 
LVL 27

Accepted Solution

by:
tliotta earned 1500 total points
ID: 39646757
For the 0403-006 error, there are two general possibilities.

First, it could be an issue with the object being accessed, i.e., the gmake object itself. And the issue could be anywhere along the path as it resolves, i.e., either along the path to the symbolic link or the path to the resolved object.

And second, the issue could be with the shell that is invoked to execute the object. In this case, the shell should be referenced through /QOpenSys/usr/bin/sh. That is another symbolic link that shows on my system as:

../../QIBM/ProdData/OS400/PASE/bin/ksh

Open in new window


So far, it all covers at least four different paths -- the two that I just mentioned above plus /QSYS.LIB/QAPTL.LIB/GMAKE.PGM  and /QIBM/ProdData/DeveloperTools/qsh/bin/gmake. Two of the four are for the symbolic links.

I hadn't looked at the path to the sh shell before. It seems odd to me that it starts with "../.." redirection instead of simply starting with the absolute '/QIBM' node. By starting with "../..", the resolution to the absolute path would seem to begin at some 'current' directory point that would have to be two levels below /root in the IFS. The resolution goes up two levels, then attempts to go down into /QIBM.

That last paragraph might be irrelevant, but it might be meaningful.

Tom
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

New style of hardware planning for Microsoft Exchange server.
Learn how to use the free Acronis True Image app to easily transfer data between iPhones and Android phones.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question