Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

lsof gives "Execute permision denied" on AIX4330-11

Status
Not open for further replies.

michael1212

IS-IT--Management
Jun 14, 2005
36
ZA
Hi all,

lsof gives "Execute permision denied" on AIX4330-11.

# ls -alF /usr/bin/lsof
-rwx------ 1 root system 612041 Apr 13 07:25 /usr/bin/lsof*

Any idea please?

Thanks!
 
Hi there,

I assume you're trying to execute the command as root user ?! ;-)

Try to check whether there's another lsof file somewhere on the machine using

find / -name lsof

Maybe there is a second file with that name having different permissions ...

Regards
Thomas
 
Or try this:

Code:
whence lsof && ls -l $(whence lsof)

You should be able to find out which file named "lsof" the shell is trying to start...


HTH,

p5wizard
 
Yep...as root...

# whoami
root
# whence lsof && ls -l $(whence lsof)
/usr/bin/lsof
-rwx------ 1 root system 612041 Apr 13 07:25 /usr/bin/lsof
#
 
Hi,

maybe there is my problem:

# file /usr/bin/lsof
/usr/bin/lsof: data or International Language text

It gives this message, although it is a binary. The same lsof (same size, etc) works fine on a 5.3 system.
I do not know how lsof was installed on this system. Maybe just ftp'ed.

So this one will not work. Will have to install from scratch.

Thanks a lot for your help.!
Michael
 
An executable from a 5.3 machine won't always run on a 4.3.3 machine. Especially lsof needs to be a specific version for a specific AIX kernel version because of the changes in kernel table layouts between the different AIX versions.

Other than that it might have been ftpd over in ascii mode which would mess up the structure of an executable file anyhow.

I advise you to download/isntall an lsof version specific for AIX 4.3.3 (and 4330-11 at that)


HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top