1748041 Members
4700 Online
108757 Solutions
New Discussion юеВ

Re: configuration SUDO

 
SOLVED
Go to solution
Eli Daniel
Super Advisor

configuration SUDO

how to configure sudo??

sudo install
not understand how to configure sudo
I have the sudoers file in the / etc / sudoers
17 REPLIES 17
Jim Walls
Trusted Contributor

Re: configuration SUDO

man sudoers
man sudo
man visudo

Also try this link:

http://www.lmgtfy.com/?q=sudo+configuration

Steven E. Protter
Exalted Contributor

Re: configuration SUDO

Shalom,

vi sudoers

The syntax of this file is laid out nicely on the man page and numerous web examples.

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
Johnson Punniyalingam
Honored Contributor

Re: configuration SUDO

Configuring the sudo utility on HP-UX server
Before configuring an element with Use Sudo option, ensure that it is installed on the
monitored HP-UX server in the /usr/local/bin directory.

To configure the sudo utility

1. Log on to the HP-UX server as a root user.

2. Open the /etc/sudoers file using any editor. or # visudoers

3. Enter the following:

A. To use the Without password option, enter

userName ALL = (ALL) NOPASSWD: /usr/bin/adb

B. To use the With password option, enter

userName ALL = (ALL) PASSWD: /usr/bin/adb

The variable userName represents the user for which the UNIX element is

configured on BMC Performance Manager Portal.

4. Enter the following to assign a zero value for the password timestamp timeout:

Defaults timestamp_timeout=0

5. Save the /etc/sudoers file, and log out from the server.

HTH,

Johnson
Problems are common to all, but attitude makes the difference
Taifur
Respected Contributor

Re: configuration SUDO

Hi,

Sudo is part of Internet Express bundle now.

You can download it from here.
11.23
http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1123
11.31
http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1131

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

U can get manual from below link,

http://docs.hp.com/en/5992-2395/ch05s05.html


Check man pages of sudo
Hope it will resolve ur problem.

Cheers,
Taifur
Horia Chirculescu
Honored Contributor

Re: configuration SUDO

Hello,

Direct editing the file /etc/sudoers is not recommended. You should use the "visudo" command which performs grammatical checking and locks the file.

man sudoers

describe very well the syntax used.

Horia.

Best regards from Romania,
Horia.
Eli Daniel
Super Advisor

Re: configuration SUDO

SAPL904:/> pwd
/
SAPL904:/> man sudo
No manual entry for sudo.
SAPL904:/>
Eli Daniel
Super Advisor

Re: configuration SUDO

I dot not understand!!!!!!

HP-UX:
The default C compiler shipped with HP-UX does not support creating
position independent code and so is unable to support sudo's "noexec"
functionality. You must use either the HP ANSI C compiler or gcc for
noexec to work. Binary packages of gcc are available from
http://hpux.connect.org.uk/ and http://hpux.cs.utah.edu/.

To prevent PAM from overriding the value of umask on HP-UX 11,
you will need to add a line like the following to /etc/pam.conf:

sudo session required libpam_hpsec.so.1 bypass_umask
Eli Daniel
Super Advisor

Re: configuration SUDO

SAPL904:/usr/local/bin> pwd
/usr/local/bin
SAPL904:/usr/local/bin> ll
total 2000
-rwxr-xr-x 1 oradbp sys 2333 Mar 25 2009 coraenv
-rwxr-xr-x 1 oradbp sys 2417 Mar 25 2009 dbhome
-rwxr-xr-x 1 oradbp sys 2560 Mar 25 2009 oraenv
---s--x--x 2 root root 492824 Jul 31 2009 sudo
---s--x--x 2 root root 492824 Jul 31 2009 sudoedit
SAPL904:/usr/local/bin> man sudo
No manual entry for sudo.
SAPL904:/usr/local/bin> whoami
root
SAPL904:/usr/local/bin>
Eli Daniel
Super Advisor

Re: configuration SUDO

edit file with vi
not edit with visudo