Operating System - Linux
1828584 Members
2469 Online
109982 Solutions
New Discussion

err loading shared lib prob with hpacucli setuid script running as non root

 
Kevin_31
Regular Advisor

err loading shared lib prob with hpacucli setuid script running as non root

Hello experts, (points forthcoming for anyone who can help)

I have an HP SmartArray on my DL360-G4 running RedHat3.0 U4 and hpacucli.

We use BigBrother (free!) to monitor all our live systems. BigBro runs as non-root, which has not been a problem for anything until now.

The hpacucli utility is what I want to use in a script, ran by bbuser id to confirm that the array is healthy. I couldn't run the command as non-root id, so I made a little script and chmmod 4755 and chown'ed it, but I now get an error about a library:

[bbuser@maserati tmp]$ ./hpac*.ksh
/opt/compaq/hpacucli/bld/.hpacucli: error while loading shared libraries: libcpq
imgr.so: cannot open shared object file: No such file or directory
[bbuser@maserati tmp]$ ls -altr ./hp*.ksh
-rwsr-xr-x 1 bbuser root 60 Feb 8 16:22 ./hpacucli.ksh

[bbuser@maserati tmp]$ more ./hp*.ksh
/usr/sbin/hpacucli controller slot=0 physicaldrive 1:0 show

[bbuser@maserati tmp]$

Can u help?

cheers,
Kevin