apache restart for sudoer-user

GoodnGo.de (R) Zentrale info at goodngo.de
Fri Oct 4 11:19:46 EDT 2002

Hollo list,

I want that my user "frutz" can restart apache server without being root.

My /etc/sudoer is configured as follows:

# /etc/sudoer
# sudoers file.
# This file MUST be edited with the 'visudo' command as root.
# See the sudoers man page for the details on how to write a sudoers file.
# Host alias specification
Host_Alias SERVER = frutz23
# User alias specification
User_Alias WEBBIES = frutz,servicer
# Cmnd alias specification
Cmnd_Alias WEBSTART = /usr/local/apache/bin/apachectl start
Cmnd_Alias WEBSTOP  = /usr/local/apache/bin/apachectl stop
Cmnd_Alias SERVICE  = /sbin/service
# Defaults specification
# User privilege specification
root    ALL=(ALL) ALL

What happened here? 

User frutz can start the apache via apachectl, but
followed by the folloeing error message:

/usr/local/apache/bin/apachectl restart
/usr/local/apache/bin/apachectl restart: httpd not running, trying to start
fopen: Permission denied
httpd: could not open error log file /usr/local/apache/logs/error_log.
/usr/local/apache/bin/apachectl restart: httpd could not be started

How I have to configure /etc/sudoers  so that user frutz can restart the apache server gracefully?
Hope for help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/sudo-users/attachments/20021004/22331faa/attachment.html>

More information about the sudo-users mailing list