cancel
Showing results for 
Search instead for 
Did you mean: 

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

Re: configuration SUDO

Check below link for more information

http://www.unixcities.com/sudo/index.html
Problems are common to all, but attitude makes the difference
Eli Daniel
Super Advisor

Re: configuration SUDO

sudo version 1.7
when you install sudo (depot) there is no configure file (. / config)
Johnson Punniyalingam
Honored Contributor
Solution

Re: configuration SUDO

>>when you install sudo (depot)<<

if its already "depot" you no need to (./configure)

the link which i post to for your Question
>>edit file with vi
not edit with visudo<<

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Eli Daniel
Super Advisor

Re: configuration SUDO

forget this option???? (installing depot)

3. Compile the source code and install sudo:

Configure the compilation process for your system:

# ./configure
Compile the source code:


# make
And install the compiled code:

# make install

This install the sudo program into /usr/local/bin, the visudo script (see later) into /usr/local/sbin and the manual page into subdirectories of /usr/local/man.

Eli Daniel
Super Advisor

Re: configuration SUDO


user: user1
change file .dtprofile

add lines:
PATH=$PATH:/usr/local/bin:/usr/local/sbin:/usr/ccs/bin
MANPATH=$MANPATH:/usr/man/:/usr/local/man

SAPL904:/home/user1> sudo -V
sh: sudo: not found.
SAPL904:/home/user1>man sudo
sh: sudo: not found.



Steven E. Protter
Exalted Contributor

Re: configuration SUDO

Shalom,

add lines:
PATH=$PATH:/usr/local/bin:/usr/local/sbin:/usr/ccs/bin
MANPATH=$MANPATH:/usr/man/:/usr/local/man

As root:
whence sudo
whence sudoers

Get that PATH into the PATH variable.

man -l sudo (as root to get started)

SAPL904:/home/user1> sudo -V
sh: sudo: not found.
SAPL904:/home/user1>man sudo
sh: sudo: not found.

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
Eli Daniel
Super Advisor

Re: configuration SUDO


change file: .dtprofile (root)
SAPL904:/> whence sudo
SAPL904:/> whence sudoers
SAPL904:/> man -l sudo
Usage: man [-M path] [-T macro-package] [ section ] name ...
or: man -k keyword ...
or: man -f file ...
SAPL904:/> man sudo
No manual entry for sudo.
SAPL904:/> whoami
root
SAPL904:/>
Eli Daniel
Super Advisor

Re: configuration SUDO

Thanks