How to give a user permission to restart lighttpd/apache

Discussion in 'Server Operation' started by mattg, Jun 30, 2007.

  1. mattg

    mattg New Member

    Hi,

    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?
     
  2. falko

    falko Super Moderator

    Which distribution do you use? What's the exact error message you get?

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

Share This Page