How to use sudoer ? FC5
I've have been trying to make easy sudoer
I (mike) run software called starting.pl where are one line:
system("sudo -u pete /home/mike/application.pl");
So I want to change to user pete and run the application which locates in my folder.
And here are sudoers file:
mike trinity= (pete) NOPASSWD: /home/mike/application.pl
So here I let user mike to change to user pete (WITH NO PASSWORD QUESTION) and then I let him to run application which is in my folder.
Why this wont work ?
When I run this application called starting.pl system always ask me to write the password ?
Why it ask met to write password? In my sudoer file I told to not ask the password ?
GIven your user is called "pete", then you should have a line like that (for this no password thing to work):
pete ALL=(ALL) NOPASSWD: ALL