Operating System - HP-UX
1837965 Members
2344 Online
110124 Solutions
New Discussion

"How to install sudo in HP-UX 11.00"

 
SOLVED
Go to solution
Reynaldo Torres
Advisor

"How to install sudo in HP-UX 11.00"

I have downloaded "sudo" 1.6.6 version to be installed in HP-UX 11.00. Can anyone tell me what will be the easiest way to install it due to the information for installation given in the instructions is not to good. I have tried to install it using "swinstall" but was installed with errors. I will give high points to the best answer to my question.

Thanks in advance,

RT
Reynaldo Torres
4 REPLIES 4
harry d brown jr
Honored Contributor
Solution

Re: "How to install sudo in HP-UX 11.00"

You might have had errors on the install, but it probably still works. Give it a try, it should be installed under /opt/sudo/bin/sudo

live free or die
harry
Live Free or Die
Victor BERRIDGE
Honored Contributor

Re: "How to install sudo in HP-UX 11.00"

Hi Reynaldo,
What about trying to download the source and compile it, I who know nothing about c language, manage to compile without errors so why not give it a try...
The main reason I compile sudo is that I need special option: The need (for batches) that users belonging to the group "oper" are not asked to enter a passwd nor have timeouts...
This is how I do it:
./configure --with-exempt=oper --with-timeout=0
make
make install
And
in the /etc/sudoers:
e.g.
operguy ALL=NOPASSWD:/usr/bin/su - dba -c ad*

Good luck
Victor
Michael Tully
Honored Contributor

Re: "How to install sudo in HP-UX 11.00"

Harry is probably right in that it could still work. Could you provide us the snippet of the 'swinstall.log' file of the installation. We might find something there.
Anyone for a Mutiny ?
Bill Hassell
Honored Contributor

Re: "How to install sudo in HP-UX 11.00"

This is a known problem with the package. sudo: The installation package from http://hpux.connect.org.uk/ has exposed a bug in swinstall. The sudo binary must be set to 4111 but in the INFO file, the owner and group are both 0, rather than the more customary root and root. This produces the error messages:

...

* Installing fileset "sudo.sudo-RUN,r=1.6.6" (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.6". Check the
above output for details.
...

The fix is to manually edit the depot (must use swcopy of the depot file into a local depot). Using vi, cd into the sudo depot, then:

- cd /catalog (ie, /var/sw/depot/catalog)
cd sudo/sudo-RUN
- vi INFO
Under path: /opt/sudo/bin/sudo, change both owner and group from 0 to root. Now you can reinstall sudo successfully for 11.xx


Bill Hassell, sysadmin