1826056 Members
4298 Online
109690 Solutions
New Discussion

Re: Sudo

 
Gops_1
Regular Advisor

Sudo

I wish to implement sudo on my HP UX server. What is to be done ? Can anyone assist me with what should i install ?
what should i edit ?

etc...

Thanks
Gee
7 REPLIES 7
Ivan Krastev
Honored Contributor

Re: Sudo

Better use ixSudo (precompiled version) from Internet Express site - http://h20338.www2.hp.com/hpux11i/cache/324414-0-0-0-121.html


After that use visudo to edit configuration file.

regards,
ivan
Steven E. Protter
Exalted Contributor

Re: Sudo

Shalom,

The version of sudo posted above is better because HP ported it and insured all needed dependencies were in the depot.

That is the good part.

The location of the sudoers file is non standard in the /opt file system where all option depots created by HP seem to install.

It is the superior choice to compile it yourself or the version posted in the porting and archive center.

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
Sandeep_Chaudhary
Trusted Contributor

Re: Sudo

do "visudo". I have given basic configuration to assigh user sandeep on machine "myworkstationname" to run "su - root" command

Host_Alias SMS=myworkstationname

User_Alias SUSER=sandeep

Runas_Alias ADM = root, !root*


Cmnd_Alias SUROOT=/usr/bin/su -, /usr/bin/su - root

SUSER SMS=(ALL) NOPASSWD: SUROOT
Gops_1
Regular Advisor

Re: Sudo

I have downloaded the isudo separately and when i tried install it says some patch error. My OS version is 11.11 and its requirement is 11iv2.

Before this i have dwlded one sudo depot file. It contains a catalog and sudo directly when i untarred it. I need a depot file which is suitalbe for my OS version

thanks
Gee
Gops_1
Regular Advisor

Re: Sudo

Now i have installed the sudo. When i do swlist sudo i am getting output.

I wish to do some configuration. For example a particular user wants to execute a superuser command. how can give that. Which file i need to edit.

Thanks
gee
Yashwant
Valued Contributor

Re: Sudo

if you have already configured sudo then modify /usr/local/etc/sudoers files

e.g


# User alias specification
User_Alias =

Cmnd_Alias CD = /usr/bin/cd
Stuart Powell
Super Advisor

Re: Sudo

Gee,

I have been using sudo for a number of years. The best thing I recall from learning it was to have a server where you can play with sudo and determine the formats that will work best for your environment. What has been very helpful for me was logging the commands someplace other that syslog.log. If you visit the sudo site (http://www.courtesan.com/sudo/sudo.html)there are excellent helps and examples available.

Stuart
Sometimes the best answer is another question