Link to home
Start Free TrialLog in
Avatar of Matthew Roessner
Matthew Roessner

asked on

CHMOD Error

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?
Avatar of Theo Kouwenhoven
Theo Kouwenhoven
Flag of Netherlands image

Go to a as/400 (iSeries) Green screen and use the WRKAUT command :-)
cd to folder containing gmake
ls -l

Post results.
Avatar of Matthew Roessner
Matthew Roessner

ASKER

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
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.
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
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...
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.
ASKER CERTIFIED SOLUTION
Avatar of Member_2_276102
Member_2_276102

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial