View Full Version : How to give a user permission to restart lighttpd/apache

30th June 2007, 16:41

I'm trying to give a user the ability to create new websites and have placed a config file in his home directory and included it in lighttpd.conf. I now need to allow him to issue

/etc/init.d/lighttpd restart

but don't know how to do this. /etc/init.d/lighttpd seems to be ok to run, but the pid file in /var/run can't be created. Do I need to alter permissions on /var/run or would this be a security problem?

1st July 2007, 14:43
Which distribution do you use? What's the exact error message you get?

Have you tried sudo /etc/init.d/lighttpd restart?