Operating System - HP-UX
1833156 Members
3251 Online
110051 Solutions
New Discussion

swinstall fails on installing "SUDO"

 
SOLVED
Go to solution
Dirk Fieremans
Advisor

swinstall fails on installing "SUDO"

Hi,

I downloaded the "sudo" depot and tried to install it on HP-UX 11.00
It failed with the following error:
* Installing fileset "sudo.sudo-RUN,r=1.6.2b1" (1 of 1).
ERROR: Unknown owner and/or group for file "/opt/sudo/bin/sudo".
SUID and/or SGID bit was not set.
ERROR: Failed installing fileset "sudo.sudo-RUN,r=1.6.2b1". Check
the above output for details.

It seems "swinstall" has a problem with installing the sudo fileset with permissions ---s--x--x and instead takes ---x--x--x.
I have the same problem when installing OpenSSH...
In both cases the state is marked "corrupt"
* Summary of Execution Phase:
ERROR: Corrupt sudo.sudo-RUN,r=1.6.2b1

anybody knows how to fix?

Thanks,
Dirk
4 REPLIES 4
harry d brown jr
Honored Contributor

Re: swinstall fails on installing "SUDO"

Go to /opt/sudo/bin and change the permissions to chmod u+s sudo

Why it happens? Not sure.

live free or die
harry
Live Free or Die
T. M. Louah
Esteemed Contributor

Re: swinstall fails on installing "SUDO"

Just an adition
for SUDO install pages:
http://www.courtesan.com/sudo/install.html

check this discussion thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x00bc119c3420d411b66300108302854d,00.html

g'd luck
t++
Little learning is dangerous!
Dirk Fieremans
Advisor

Re: swinstall fails on installing "SUDO"

I did the chmod, but I can't seem to fix the so-called corruption. I tried a swconfig \* but the error remains:
ERROR: "ops3:/": 2 software selection(s) are corrupt.

It's probably not important but I hate to see "corruptions" on my system. I can't re-install because ti will give the same error again...

Dirk
Peter Kain
Advisor
Solution

Re: swinstall fails on installing "SUDO"

Hi Dirk,

There is an INFO file that is part of the depot that contains two lines that you need to change.

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


tar xvf sudo-1.6.2b1-sd-11.00.depot

vi catalog/sudo/sudo-RUN/INFO

...
path /opt/sudo/bin/sudo
type f
size 102400
cksum 3505416709
mode 04111
uid 0
gid 0
owner root
group root
mtime 948880041
...

Now save the file and re-tar the depot. I ran swremove to remove sudo then re-installed. This installed without errors or warnings.