Operating System - HP-UX
1834725 Members
2258 Online
110069 Solutions
New Discussion

Re: lsof : ver 4.69 : compiled for 32 bit kernel error

 
SOLVED
Go to solution
Q4you
Regular Advisor

lsof : ver 4.69 : compiled for 32 bit kernel error

I could not execute "lsof" as root or normal user on a HPUX 11.0 ( K class) system after installing 4.67 ot 4.69 ver of "lsof"

During installation of lsof 4.69, got this error in the swinstall log. Though, its gets completed with errors.

* Kbytes: 239
* Installing fileset "lsof.lsof-RUN,r=4.69" (1 of 1).
ERROR: Unknown owner and/or group for file "/usr/local/bin/lsof".
SUID and/or SGID bit was not set.
ERROR: Failed installing fileset "lsof.lsof-RUN,r=4.69". Check the
above output for details.

Upon running lsof, I get error
# ./lsof
lsof: FATAL: lsof was built for a 32 bit kernel, but this
is a 64 bit kernel.

Objective : How a normal user get the list of open files associated with a proces or a directory ?

TIA,

-Q4U
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: lsof : ver 4.69 : compiled for 32 bit kernel error

Here is a link to lsof for an 11.0 64 bit kernel. Download and install.

http://the-other.wiretapped.net/security/host-security/lsof/binaries/hpux/B.11.00/vxfs/64/9000_800/


Pete

Pete
Q4you
Regular Advisor

Re: lsof : ver 4.69 : compiled for 32 bit kernel error

Thanks for the link...

Downloaded the lsof_4.69.gz file but it seems gunzip could not open this .gz file.

=Q
Pete Randall
Outstanding Contributor
Solution

Re: lsof : ver 4.69 : compiled for 32 bit kernel error

Ok, then, let's try attaching the binary for you.


Pete

Pete
Q4you
Regular Advisor

Re: lsof : ver 4.69 : compiled for 32 bit kernel error

Copied the file as lsof_new, chmod +x,

$ ./lsof_new
lsof_new: can't open /dev/kmem: Permission denied

TIA,

-Q
Q4you
Regular Advisor

Re: lsof : ver 4.69 : compiled for 32 bit kernel error

Found solution to the above problem. It runs as root but gives error runing as normal user. Set the setuid bit for normal user, it works now for normal users.

-Q