Operating System - HP-UX
1820620 Members
1918 Online
109626 Solutions
New Discussion юеВ

Re: configuring "sudo" in hp-ux

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

configuring "sudo" in hp-ux

Hi

I want to give sudo permission for some users. so how to do this HP-UX.

Pls explain me.
5 REPLIES 5
Richard Hepworth
Esteemed Contributor
Solution

Re: configuring "sudo" in hp-ux

Senthil,

Use the visudo command to edit the sudoers file as this has error checking.

'man visudo' to find the syntax to configure the access you require.

For example we use sudo to give group1 users root access to all commands without asking for a password, this is achieved by:

%group1 ALL=(ALL) NOPASSWD: ALL



yulianto piyut
Valued Contributor

Re: configuring "sudo" in hp-ux

1. You must sudo installed first
2. to configure sudoers files:
# cp /usr/local/etc/sudoers.sample /usr/local/etc/sudoers
# /usr/local/sbin/visudo
add line for ex:
# Same thing without a password
%sysadmin ALL=(ALL) NOPASSWD: ALL
--> means, group sysadmin can do everything like root user
donald ALL=(ALL) NOPASSWD: /usr/bin/su - oracle
---> measn, user donald can switch to user oracle without password with run "sudo su - oracle"
Jeeshan
Honored Contributor

Re: configuring "sudo" in hp-ux

Avinash20
Honored Contributor

Re: configuring "sudo" in hp-ux

You could download sudo software from

http://gatekeep.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.7.0/

Please refer for the below link for examples

http://www.gratisoft.us/sudo/man/sudoers.html
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
щ╗ЮчЗГ
Valued Contributor

Re: configuring "sudo" in hp-ux

Hi Senthil,

Please have a look on these threads

https://support.hpe.com/hpesc/public/docDisplay?docId=c03593890&docLocale=en_US

regards!

Man's mind, once stretched by a new idea, never regains its original dimensions