HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=983135


http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1299206

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