1834450 Members
1992 Online
110067 Solutions
New Discussion

Re: Sudo

 
SOLVED
Go to solution
Grayh
Trusted Contributor

Sudo

I have sudo-1.6.9p17-ia64-11.31.depot.gz file in /tmp

How to install in...
17 REPLIES 17
Ivan Krastev
Honored Contributor
Solution

Re: Sudo

Extract it from archive:
#gunzip sudo....depot.gz

and you will have sudo-1...depot

after that install it with

#swinstall -s /tmp/sudo-1.....depot \*

regards,
ivan
SKR_1
Trusted Contributor

Re: Sudo

you need to unzip the file first and then swinstall will work or you can use SAM

gunzip filename
swinstall -s location of file

or simply type swinstall and enter, it will go to SAM text display, ther you need to give the location of depot.

Thanks

SKR
Suraj K Sankari
Honored Contributor

Re: Sudo

Hi,

Unzip the sudo-1.6.9p17-ia64-11.31.depot.gz
with gzip -d sudo-1.6.9p17-ia64-11.31.depot.gz

then read the README file.

or

swinstall -s /tmp sudo-1.6.9p17-ia64-11.31.depot

Suraj
Sandeep_Chaudhary
Trusted Contributor

Re: Sudo

swlist -l depot: This command list registered depots on server.

move ur depot file to that directory

If no registered on the server Then
cd /tmp
gunzip sudo-1.6.9p17-ia64-11.31.depot.gz
swreg -l depot /tmp/sudo-1.6.9p17-ia64-11.31.depot
swinstall -s /tmp/sudo-1.6.9p17-ia64-11.31.depot

press enter
go to option > change option> uncheck "Mount filesystems in /etc/fstab or /etc/checklist"

>OK
select u r depot file
go to action> press m
go to action> press I

just go ahead.It will analyse if everything ok u can go ahead with installation
go to
Grayh
Trusted Contributor

Re: Sudo

Thanks to everyone..

Now I have Installed sudo..
# swlist | grep sudo
sudo 1.6.9p17 sudo

How can I make it to use for the user to run a set of commands...

Grayh
Trusted Contributor

Re: Sudo

Thanks to everyone..

Now I have Installed sudo..
# swlist | grep sudo
sudo 1.6.9p17 sudo

How can I make it to use for the user to run a set of commands...

# sudoers
sh: sudoers: not found.
# sudo
sh: sudo: not found.
# sudoers
sh: sudoers: not found.
SKR_1
Trusted Contributor
Grayh
Trusted Contributor

Re: Sudo

# pwd
/usr/local/bin
# ll
total 3584
-rwxr-xr-x 1 root 1307 72376 Apr 10 2007 funzip
-rw-r----- 2 root root 419692 Jun 30 12:56 sudo
-rw-r----- 2 root root 419692 Jun 30 12:56 sudoedit

#

Added the following line to /etc/syslog.conf

local2.debug /var/adm/syslog/sudo.log

# cd /etc
# ll sudo*
sudo* not found
# /usr/local/bin/sudo
sudo: can't stat /usr/local/etc/sudoers: No such file or directory
# Sep 26 10:30:35 iuxclient1 sudo: root : can't stat /usr/local/etc/sudoers:
No such file or directory ; TTY=pts/ta ; PWD=/usr/local/bin ; USER=root ; COMMA
ND=/sbin/sh
Grayh
Trusted Contributor

Re: Sudo

Now I get the below error

# /usr/local/bin/sudo
sudo: /usr/local/etc/sudoers is zero length
# Sep 26 11:03:36 iuxclient1 sudo: root : /usr/local/etc/sudoers is zero len
gth ; TTY=pts/ta ; PWD=/opt ; USER=root ; COMMAND=/sbin/sh

#
Marylou Kohlmeier
Frequent Advisor

Re: Sudo

HI Grayh,

I have the same error:
root:/usr/local/bin/sudo/sudo-1.6.9p17 #sudoers
sh: sudoers: not found.
root:/usr/local/bin/sudo/sudo-1.6.9p17 #sudo
sh: sudo: not found.

Do you know how to resolve this error?

Marylou
Torsten.
Acclaimed Contributor

Re: Sudo

The docs for both of you:

http://www.gratisoft.us/sudo/man/sudo.html

http://www.gratisoft.us/sudo/man/sudoers.html

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!   
V. Nyga
Honored Contributor

Re: Sudo

@Marylou:
you have to use the complete path '/usr/local/bin/sudo/sudo-1.6.9p17/sudo'
or add '/usr/local/bin/sudo/sudo-1.6.9p17' to /etc/PATH.

Also to start a command from the current directory use './' in your case './sudo'

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Marylou Kohlmeier
Frequent Advisor

Re: Sudo

I followed your suggestion and added the path '/usr/local/bin/sudo/su-1.6.9p17/sudo' to /etc/PATH - TO NO AVAIL

I still get the error:
root:/usr/local/bin/sudo/sudo-1.6.9p17 #./sudo
sh: ./sudo: not found.

Marylou
V. Nyga
Honored Contributor

Re: Sudo

@Marylou:
please show us 'll' (or 'ls -la')

V.

BTW. - you should open your own thread ...
*** Say 'Thanks' with Kudos ***
Torsten.
Acclaimed Contributor

Re: Sudo

@Marylou:

Please open your own thread!

Then tell us exactly how did you install the software.

A path like

/usr/local/bin/sudo/sudo-1.6.9p17

looks somehow wrong to me ...

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!   
prasadb
Super Advisor

Re: Sudo

Grayh ,

Try using whereis visudo
then you will get the complete path of the visudo file, like /usr/local/sbin/visudo

then run it

#/usr/local/sbin/visudo

and modify according to your requirement

Grayh
Trusted Contributor

Re: Sudo

Thanks every one