Hallo List, Ich möchte einem Nutzer erlauben den Apache zu retstarten ohne das dieser root ist.
Meine /etc/sudoer habe ich wie folgt konfiguriert: # /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 WEBBIES SERVER=WEBSTART WEBBIES SERVER=WEBSTOP WEBBIES SERVER=SERVICE Was passiert? Der Nutzer frutz darf den apache via apachectl zwar starten, aber es kommt folgende Fehlermeldung: /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 was mach ich damit dasfunzt? Oliver