cancel
Showing results for 
Search instead for 
Did you mean: 

sudo

madhudeepan
Frequent Advisor

sudo

output from sudo

i have given the permssion for opeartor to do cmviewcl ,, but when they tried it ,,


it shows :::::::::::::::::::::::::::: not superuser


/ >/usr/local/bin/sudoedit /etc/sudoers
"/var/tmp/sudoers.a0028847" 17 lines, 869 characters

User_Alias ADMINS = raj , gupta


User_Alias OPERATOR = operator

Host_Alias COU = INDIA1,10.59.117.75

Defaults syslog=auth
Defaults>root !set_logname
#Defaults@DR log_year, logfile=/var/log/sudo.log

root ALL = (ALL) ALL
#%hpms ALL = (ALL) ALL
ADMINS ALL = NOPASSWD: ALL
operator COU = NOPASSWD: /usr/lbin/modprpw , /usr/lbin/getprpw , /opt/OV/bin/OpC/opcagt , /usr/sbin/cmviewcl
#operator COU = NOPASSWD: /home/ramesh/check_APP_DB , /home/ramesh/check_DC_all , /home/ramesh/check_DR_all , /
usr/sbin/swapinfo
#operator COU = NOPASSWD: /home/ramesh/check_DB
operator COU = NOPASSWD: /usr/sbin/cmviewcl
#operator COU = NOPASSWD: /rem_tmp.sh
3 REPLIES
Ivan Krastev
Honored Contributor

Re: sudo

From the operator account try:
sudo -l

to check the available commands for this user.

You have also duplicate entries for cmviewcl in sudoers file.

regards,
ivan
Suraj K Sankari
Honored Contributor

Re: sudo

Hi,

How did you tried.
try like "sudo cmviewcl"

Suraj
AwadheshPandey
Honored Contributor

Re: sudo

operator should use
$sudo /usr/sbin/cmviewcl

Regards,

Awadhesh
It's kind of fun to do the impossible