1835359 Members
3622 Online
110078 Solutions
New Discussion

sudo question

 
SOLVED
Go to solution
Aviad Twina
Advisor

sudo question

Hi all,
I'm trying to set a sudo for one of our users.
I'm using sudo-1.6.7p5 for my hpux 11.00 server.
I trying to give a user the ability to run
/usr/contrib/Q4/bin/kmeminfo command but I didn't manage to do it.
I'm editing the sudoers file through visudo.

# My Sample
User_Alias USER = aviad
Host_Alias MYHOST = server1
Cmnd_Alias KMEM= /usr/contrib/Q4/bin/kmeminfo
USER MYHOST = KMEM

In addition, Iâ ve tried the following:
aviad ALL = /usr/contrib/Q4/bin/kmeminfo
but it didn't work as well.

In my Linux workstation I did the same with tcpdump command and it works fine.
Any idea what did I do wrong ?
Thanks,
Avi
2 REPLIES 2
Geoff Wild
Honored Contributor
Solution

Re: sudo question

What about this in sudoers:

aviad server1 = /usr/contrib/Q4/bin/kmeminfo


Rgds..Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Aviad Twina
Advisor

Re: sudo question

It works!!!
I found why the "USER MYHOST = KMEM"
didn't work from the beginning.

I used "sudo -u aviad PATH to kmeminfo"...
instead of "sudo PATH to kmeminfo"...

Thanks Geoff ,

Aviad