I've been writing a program for work. It's almost finished, but I've been stuck trying to solve one problem for a couple of days. The problem is not being able to run sudo in a shell script as user Nobody. Nobody is the userid under which the
Lampp Apache web servers runs. After trying various solution, I found my answer
here. Here's the line I need to add to /etc/sudoers-
nobody ALL = NOPASSWD:
My script can now run ssh at system prompt from a cgi page without being prompted for a password or key information. Very cool!!!!!!
No comments:
Post a Comment