cancel
Showing results for 
Search instead for 
Did you mean: 

SUDO access to configured.

SUDO access to configured.

Hi,

We are having HP-UX 11i V1 running. I have got requirement to configure the SUDO access as below,

Create one Unix account and Configure the account to be a member of the sys and adm group. I have created the unix account and also installed the SUDO and lsof software.

 

Now we have to configure the SUDO access as below,

SUDO access all with no NOPASSWD
lsof must configured with sudo access as root (NOPASSWD).

 

Please let me know what changes i have to made in /etc/sudoers file so that above requirement is done.

 

Thanks,

Narendra

 

1 REPLY
James R. Ferguson
Acclaimed Contributor

Re: SUDO access to configured.

Hi:

 

Your '/etc/sudoers' configuration is going to look something like this:

 

myaccount ALL=(ALL) NOPASSWD:/usr/local/bin/lsof

 

The documentation on the 'sudo' home is your best source of information:

 

xhttp://www.gratisoft.us/sudo/man/1.8.1/sudoers.man.html

 

Regards!

 

...JRF...