1846850 Members
3132 Online
110256 Solutions
New Discussion

Re: problems with sudo

 
SOLVED
Go to solution
Jairo Campana
Trusted Contributor

problems with sudo

hello I need that the user jhon execute with root scripts of directory /opt/OV/bin/OpC

Use SUDO command:

sudoers
User_Alias JHON = JHONB
Cmnd_Alias OV = /opt/OV/bin/OpC/*
JHON ALL = NOPASSWD:OV

also probe:
Cmnd_Alias OV=/opt/OV/bin/OpC/oprcagt, /opt/OV/bin/OpC/agtinstall, /opt/OV/bin/OpC/call_sqlplus.sh, /opt/O
V/bin/OpC/extern_int, /opt/OV/bin/OpC/install, /opt/OV/bin/OpC/ito_create_new_svreg.sh



when it executes with the user JHONB :
I HAVE ERROR:
and to me it asks for password
---------------------------------------------

server>/opt/sudo/bin/sudo /opt/OV/bin/OpC/oprcagt rep1 -status
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these two things:

#1) Respect the privacy of others.
#2) Think before you type.

PASSWORD:

before ok worked
legionx
2 REPLIES 2
T. M. Louah
Esteemed Contributor

Re: problems with sudo

Here's a thread that discusses the SUDO HOW-TOs:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x0ca672234586d5118ff00090279cd0f9,00.html

g'd luck
t++
Little learning is dangerous!
James A. Donovan
Honored Contributor
Solution

Re: problems with sudo

have you tried...

Cmnd_Alias OV=/opt/OV/bin/OpC/*,/opt/OV/bin/OpC/* *

Remember, wherever you go, there you are...