Unix/Linux Go Back    



Problem using sudo with NOPASSWD

HP-UX




Kindly Note - This is a Single User Post by Forum Member vbe Regarding:
Problem using sudo with NOPASSWD.
Please Follow The Primary Link Above to View the Full Discussion.

   
Old Unix and Linux 04-11-2016   -   Original Discussion by aigini82
vbe's Unix or Linux Image
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 26 May 2018, 6:26 AM EDT
Location: Switzerland - GE
Posts: 6,541
Thanks: 307
Thanked 563 Times in 525 Posts
Wonder if ther is not something queer here...
try:


Code:
etigers   ALL = NOPASSWD : /path/to/command/to/execute, /usr/bin/su - userX

Check the path to su as I have no more HP-UX under my hand to verify... You need to give absolute path to binaries in sudoers for sudo to work properly...