Don't forget it will be your apache user running this script, so you need to enter the password for that user, not yourself. Obviously the apache user must also be on your sudoers list.
The first rule of Tautology Club is the first rule of Tautology Club.
thank everyone. i change mu soduers list:
nobody ALL=NOPASSWD: ALL
You really want to be careful there, you are giving unrestricted access to all commands without a password, if your web access becomes compramised and people can upload their pages with their own commands you can lose complete control of your box, you could lose everything on it, they could steal everything of value it contains, and there'd be nothing to stop them.
There's a reason sudo has a password in the first place, it's an extra security measure against this course of action.
If you are using PHP please use the [PHP] and [/PHP] forum tags for highlighting...
The same applies to HTML and the forums [HTML][/HTML] tags.
Bookmarks