1834492 Members
2464 Online
110067 Solutions
New Discussion

Sudo question

 
Waqar Razi
Regular Advisor

Sudo question

What is the difference between these two files:

sudo-1.6.9p17-hppa-11.11.depot.gz
sudo-1.6.9p17-src-11.11.tar.gz

Both of them are available for installation of sudo on hpux 11.11 PA RISC based servers. Which one is to choose for installation.

Also I have a question, how can I extract the file from this gz format on hpux platform.

Also please state the steps to install and configure sudo on HPUX server.
8 REPLIES 8
Pete Randall
Outstanding Contributor

Re: Sudo question

The first appears to be a SD depot, ready to install with swinstall. The second is a tar of the source, which could be loaded if you wanted or needed to build your own sudo.


Pete

Pete
Waqar Razi
Regular Advisor

Re: Sudo question

How can you extract depot file out of .gz file:

I tried tar xvfz nameoffile

but its giving me error.
Sajjad Sahir
Honored Contributor

Re: Sudo question

sudo-1.6.9p17-src-11.11.tar.gz
regarding this
first u have gunzip

gunzip sudo-1.6.9p17-src-11.11.tar.gz(full path name )
then u can extract by using tar xvf command

Sajjad
Patrick Wallek
Honored Contributor

Re: Sudo question

You just need to gunzip the file.

# gunzip sudo-1.6.9p17-hppa-11.11.depot.gz

Then you can use swinstall to install.

If the file is in /var/tmp, then:

# swinstall -s /var/tmp/sudo-1.6.9p17-hppa-11.11.depot \*
Waqar Razi
Regular Advisor

Re: Sudo question

Here is the error which I am having when I am trying to install sudo on hpux 11.00 server using swinstall:

* Beginning the Install Execution Phase. ^|
| | * Filesets: 1 |
| | * Files: 15 |
| | * Kbytes: 481 |
| | * Installing fileset "sudo.sudo-RUN,r=1.6.9p17" (1 of 1). |
| | ERROR: Unknown owner and/or group for file "/usr/local/bin/sudo". |
| | SUID and/or SGID bit was not set. |
| | ERROR: Failed installing fileset "sudo.sudo-RUN,r=1.6.9p17". Check |
| | the above output for details. |
| | * Running install clean command /usr/lbin/sw/install_clean. |
| | NOTE: tlinstall is searching filesystem - please be patient |
| | NOTE: Successfully completed
* Beginning the Configure Execution Phase. |
| | |
| | * Summary of Execution Phase: |
| | ERROR: Corrupt sudo.sudo-RUN,r=1.6.9p17 |
| | ERROR: 1 of 1 filesets had Errors. |
| | ERROR: The Execution Phase had errors. See the above output for |
| | details.
Waqar Razi
Regular Advisor

Re: Sudo question

Here is the error which I am having when I am trying to install sudo on hpux 11.00 server using swinstall:

* Beginning the Install Execution Phase.
* Filesets: 1 |
| | * Files: 15 |
| | * Kbytes: 481 |
| | * Installing fileset "sudo.sudo-RUN,r=1.6.9p17" (1 of 1). |
| | ERROR: Unknown owner and/or group for file "/usr/local/bin/sudo". |
| | SUID and/or SGID bit was not set. |
| | ERROR: Failed installing fileset "sudo.sudo-RUN,r=1.6.9p17". Check |
| | the above output for details. |
| | * Running install clean command /usr/lbin/sw/install_clean. |
| | NOTE: tlinstall is searching filesystem - please be patient |
| | NOTE: Successfully completed
* Beginning the Configure Execution Phase. |
| | |
| | * Summary of Execution Phase: |
| | ERROR: Corrupt sudo.sudo-RUN,r=1.6.9p17 |
| | ERROR: 1 of 1 filesets had Errors. |
| | ERROR: The Execution Phase had errors. See the above output for |
| | details.
Torsten.
Acclaimed Contributor

Re: Sudo question

1) looks like you have a corrupted download

2) the depot is for 11.11, your server is running 11.00 - doesn't fit together!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Patrick Wallek
Honored Contributor

Re: Sudo question

I've had this error on some of my servers. For whatever reason swinstall was not able to set the permissions on the sudo executable correctly.

You probably just need to set them manually:

# chown root:root /usr/local/bin/sudo
# chmod 4111 /usr/local/bin/sudo

Now give sudo a try and see if it works.