Operating System - HP-UX
1846977 Members
4234 Online
110257 Solutions
New Discussion

Re: lsof installation woes

 
SOLVED
Go to solution
Mark Tunnell
Advisor

lsof installation woes

When I try to install lsof-4.73-sd-11.11.depot I get the following error:
Installing fileset "lsof.lsof-RUN,r=4.73" (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.73". Check the above output for details.

Any ideas?

Mark
12 REPLIES 12
A. Clay Stephenson
Acclaimed Contributor

Re: lsof installation woes

lsof is a setuid/setgid program. You probably tried to install or make it as a non-root user.

cd /opt/lsof/bin (or wherever your lsof executable is).
chown root:sys lsof
chmod 6755 lsof

That should fix you although because lsof is kernel intrusive a 32-bit version of lsof will not run on 64-bit 11.11.
If it ain't broke, I can fix that.
Mark Tunnell
Advisor

Re: lsof installation woes

I am logged in as root when I attempt the install. I'm downloading the program from hpux.connect.org.uk and it says it is for 11.11 64 bit.
Steven E. Protter
Exalted Contributor

Re: lsof installation woes

Try the program. It actually works just fine after the install. You may actually need to set the SUID on the program, but it actually does install.

Annoying, but non-leathel.

I spent a solid two hours one afternoon trying to get it to install without error. Then I decided to try it out anyway.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
T G Manikandan
Honored Contributor

Re: lsof installation woes

Just check whether there is a INFO file in the depot.

If one exists change

"owner 0" change to "owner root"
"group 0" change to "group root"


Revert
Mark Tunnell
Advisor

Re: lsof installation woes

Thanks for the input. However, I get a core dump when I try to run it, now matter what permissions or suid I set. The depot does contain an INFO file but it doesn't have an owner= or group= line in it.

Mark
Sanjay_6
Honored Contributor

Re: lsof installation woes

Hi Mark,

Try to download the binary once again and retry the installation. If problem persist, go back one version. There is an older version also available over here. You can try that.

http://hpux.cs.utah.edu/

Hope this helps.

Regds
Mark Greene_1
Honored Contributor

Re: lsof installation woes

Silly question for you: did you su or su - to become root?

mark
the future will be a lot like now, only later
Mark Tunnell
Advisor

Re: lsof installation woes

I've tried both the current 4.73 and one back 4.72 with the same result. I logged directly in as root. I've had no problem install lsof on any of my 11.0 boxes, just on the 11.11 ones. I'm thinking now it might be something with their patch level?

Mark
Sanjay_6
Honored Contributor

Re: lsof installation woes

Hi Mark,

Check out question 9.3.7 from this lsof faq,

ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ

Hope this helps.

Regds
Mark Tunnell
Advisor

Re: lsof installation woes

Thank for the link to the FAQ. That definitely seems to be the problem. However, I'm not sure how to fix it. If I edit the depot file and under the /usr/lcoal/bin/lsof section change gid 3 to gid 0 I get an IO error when I try to install it. I assume I'm screwing up the chksum. If I change the gid on the file itself after installation I still get the memory fault.
Ermin Borovac
Honored Contributor
Solution

Re: lsof installation woes

The binary you have was built with gcc. The following entry from lsof FAQ has a warning about lsof builds with gcc on 64 bit HP-UX 11.

---
3.43.7 Why hasn't the test suite been qualified for 64 bit HP-UX 11 when lsof is compiled with gcc?

When I attempted to qualify lsof for HP-UX 11, compiled with gcc 3.0, the LTsock test failed. I traced the failure to a gcc compilation error. Because LTsock is an important test, I didn't feel that the test suite was qualified if it failed.

LTsock compiles and runs correctly on 64 bit HP-UX 11 when compiled with HP's ANSI-C.
---

lsof author doesn't recommend using lsof binaries. You can easily build lsof from source. After unpacking the source run the following.

$ ./Configure -n hpux
$ make

This should work even with bundled C compiler.

Otherwise you can try prebuilt binary from lsof ftp site.

ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/binaries/hpux/B.11.11/lsof_4.73.gz

Mark Tunnell
Advisor

Re: lsof installation woes

Thanks! Compiling from the source worked just fine.