1846766 Members
4673 Online
110256 Solutions
New Discussion

Re: sudo installation

 
SOLVED
Go to solution
fabler
Advisor

sudo installation

Hello everyone!

sorry for my stupid question!

I can't install sudo from here: http://hpux.connect.org.uk/ftp/hpux/Sysadmin/sudo-1.6.9p17/sudo-1.6.9p17-hppa-11.11.depot.gz

installation guide says:
[Edit the HP-UX override section of configure for your site,
particularly the prefix setting]
./configure
gmake install

but there isn't script named "configure" in folders after unzipping sudo-1.6.9p17-hppa-11.11.depot.gz.

Could somebody tell me, how should I install sudo?

Thanks!
19 REPLIES 19
Suraj K Sankari
Honored Contributor

Re: sudo installation

Hi,

I think you didn't unzip the depot
Frist unzip the depot then try

Suraj
Ivan Krastev
Honored Contributor

Re: sudo installation

Another option is to use ixSudo from InternetExpress package - http://h20338.www2.hp.com/hpux11i/cache/324414-0-0-0-121.html

regards,
ivan
Steven E. Protter
Exalted Contributor

Re: sudo installation

Shalom,

move the depot to /tmp (example choose your spot)
gunzip sudo-1.6.9p17-hppa-11.11.depot.gz

swinstall -s /tmp/sudo-1.6.9p17-hppa-11.11.depot \*

There will be an error and then it will work.

You have downloaded a SD-UX software depot and must use swinstall to install it on an HP-UX server.

You can also get what I feel is a better depot install by downloading sudo from http://software.hp.com
Search for Internet Express, choose your OS and then pick the component you would like.

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
fabler
Advisor

Re: sudo installation

of course i did it...
there are two root folders and so on after unzipping (as written in Contents). Whole directories tree is the same View Contents.
Patrick Wallek
Honored Contributor

Re: sudo installation

Go back and reread SEP's reply.

The installation instructions you see are reading are for compiling the source code. You are not doing that.

You have downloaded a gzip'ed DEPOT file. You should be able to install this directly via swinstall.

Assuming the file is in /tmp:

# cd /tmp
# gunzip sudo-1.6.9p17-hppa-11.11.depot.gz
# swinstall -s /tmp/sudo-1.6.9p17-hppa-11.11.depot \*

Now sudo should be installed.
fabler
Advisor

Re: sudo installation

i have some progress!

swinstall -s /.../sudo-1.6.9p17-hppa-11.11.depot runs SD install, but there is one error:
cannot establish a lock on the target because of an external error (for example, the lock file could not be created).

which resourse cannot be locked?

My OS is 11.11 and i couldn't get nessesary version of package from software.hp.com
fabler
Advisor

Re: sudo installation

gunzip sudo-1.6...depot.gz says:
gunzip: sudo......depot.gz: not in gzip format.

i unzipped by winrar on my work machine and then copied by ftp to server (in avtomatic mode).
Patrick Wallek
Honored Contributor

Re: sudo installation

You would probably be better off copying the depot.gz file to your HP-UX server, making sure to use BINARY FTP.

Once on your server, gunzip the file there and then try swinstall.
fabler
Advisor

Re: sudo installation

i used bin mode when i copied gz archive ...
Suraj K Sankari
Honored Contributor

Re: sudo installation

hi,
for unzip do like this way
gunzip -d sudo-1.6...depot.gz

suraj
fabler
Advisor

Re: sudo installation

gunzip -d sudo-1.6...depot.gz

gunzip: sudo... not in gzip format
fabler
Advisor

Re: sudo installation

probably the reason is copying between vista and xp computers...

Re: sudo installation

I suggest you download the depot again... I often find problems with downloads from the HP-UX porting and archive centre if I use http download rather than the ftp download.

Use this link to download and see how you get on:

ftp://hpux.connect.org.uk/hpux/Sysadmin/sudo-1.6.9p17/sudo-1.6.9p17-hppa-11.11.depot.gz

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Suraj K Sankari
Honored Contributor

Re: sudo installation

hi fabler,
Better download the new one ftp into hpbox with binary mode then start installation as per the readme file.
Suraj
fabler
Advisor

Re: sudo installation

files have different sizes (http and ftp).
gunzip worked without errors, but
swinstall -s /tmp/sudo....depot says:
There is currently no depot software on host at location........
Suraj K Sankari
Honored Contributor

Re: sudo installation

Hi,

register your deport with this

swreg -l depot hostname:/var/opt/mx/depot11
swreg -l depot /var/opt/mx/depot11

or

try with sam for installation

Suraj
Solution

Re: sudo installation

Now I'm struggling to see what your problem is - here's a complete log of my install of sudo on a 11.11 system (your server is running HP-UX11.11 isn't it?)

# uname -a
HP-UX c3000 B.11.11 U 9000/785 2009587359 unlimited-user license
# pwd
/root
# ftp hpux.connect.org.uk
Connected to hades.connectinternetsolutions.com.
220 ProFTPD 1.2.10 Server (HP-UX Archive FTP Server, UK) [172.25.243.4]
Name (hpux.connect.org.uk:root): ftp
331 Anonymous login ok, send your complete email address as your password.
Password:
230 Anonymous access granted, restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd hpux/Sysadmin/sudo-1.6.9p17
250 CWD command successful
ftp> bin
200 Type set to I
ftp> get sudo-1.6.9p17-hppa-11.11.depot.gz
200 PORT command successful
150 Opening BINARY mode data connection for sudo-1.6.9p17-hppa-11.11.depot.gz (203952 bytes)
226 Transfer complete.
203952 bytes received in 1.11 seconds (180.04 Kbytes/s)
ftp> bye
221 Goodbye.
# gunzip sudo-1.6.9p17-hppa-11.11.depot.gz
# swlist -d -s /root/sudo-1.6.9p17-hppa-11.11.depot
# Initializing...
# Contacting target "c3000"...
#
# Target: c3000:/root/sudo-1.6.9p17-hppa-11.11.depot
#

#
# No Bundle(s) on c3000:/root/sudo-1.6.9p17-hppa-11.11.depot
# Product(s):
#

sudo 1.6.9p17 sudo
# swinstall -s /root/sudo-1.6.9p17-hppa-11.11.depot sudo

======= 09/09/08 16:02:04 BST BEGIN swinstall SESSION
(non-interactive) (jobid=c3000-0523)

* Session started for user "root@c3000".

* Beginning Selection
* Target connection succeeded for "c3000:/".
* Source: /root/sudo-1.6.9p17-hppa-11.11.depot
* Targets: c3000:/
* Software selections:
sudo.sudo-RUN,r=1.6.9p17,a=HP-UX_B./800
* Selection succeeded.


* Beginning Analysis and Execution
* Session selections have been saved in the file
"/root/.sw/sessions/swinstall.last".
* The analysis phase succeeded for "c3000:/".
* The execution phase succeeded for "c3000:/".
* Analysis and Execution succeeded.


NOTE: More information may be found in the agent logfile using the
command "swjob -a log c3000-0523 @ c3000:/".

======= 09/09/08 16:03:22 BST END swinstall SESSION (non-interactive)
(jobid=c3000-0523)

# swlist sudo
# Initializing...
# Contacting target "c3000"...
#
# Target: c3000:/
#

# sudo 1.6.9p17 sudo
sudo.sudo-RUN


So it installs fine for me...

HTH

Duncan

I am an HPE Employee
Accept or Kudo
fabler
Advisor

Re: sudo installation

it's ok!
i installed sudo too.
Thanks everyone!
Raymond E. Lilly
Frequent Advisor

Re: sudo installation

I need to run sudo and plan to follow the detailed swinstall steps posted by Duncan. My system has little space available. Can anyone tell me where the files are installed and how much space it consumes? Thanks, Ray