- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- configuration SUDO
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2010 01:27 PM
тАО02-10-2010 01:27 PM
sudo install
not understand how to configure sudo
I have the sudoers file in the / etc / sudoers
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2010 01:45 PM
тАО02-10-2010 01:45 PM
Re: configuration SUDO
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2010 01:56 PM
тАО02-10-2010 01:56 PM
Re: configuration SUDO
vi sudoers
The syntax of this file is laid out nicely on the man page and numerous web examples.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2010 05:59 PM
тАО02-10-2010 05:59 PM
Re: configuration SUDO
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2010 07:59 PM
тАО02-10-2010 07:59 PM
Re: configuration SUDO
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2010 10:13 PM
тАО02-10-2010 10:13 PM
Re: configuration SUDO
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.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2010 04:20 AM
тАО02-11-2010 04:20 AM
Re: configuration SUDO
/
SAPL904:/> man sudo
No manual entry for sudo.
SAPL904:/>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2010 04:42 AM
тАО02-11-2010 04:42 AM
Re: configuration SUDO
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2010 05:05 AM
тАО02-11-2010 05:05 AM
Re: configuration SUDO
/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>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2010 05:14 AM
тАО02-11-2010 05:14 AM
Re: configuration SUDO
not edit with visudo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2010 05:32 AM
тАО02-11-2010 05:32 AM
Re: configuration SUDO
http://www.unixcities.com/sudo/index.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2010 05:48 AM
тАО02-11-2010 05:48 AM
Re: configuration SUDO
when you install sudo (depot) there is no configure file (. / config)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2010 06:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2010 06:43 AM
тАО02-11-2010 06:43 AM
Re: configuration SUDO
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2010 06:54 AM
тАО02-11-2010 06:54 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2010 07:23 AM
тАО02-11-2010 07:23 AM
Re: configuration SUDO
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
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2010 07:37 AM
тАО02-11-2010 07:37 AM
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:/>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2010 11:29 AM
тАО02-11-2010 11:29 AM