Results 1 to 2 of 2

Thread: Starting Apache as user Apache

  1. #1
    PrimarchBentley NNTP User

    Default Starting Apache as user Apache

    What would be the best way to allow a non-root user to be able to start and stop Apache in OpenSUSE 11.1?

    Our web designer sometimes needs to make changes to web server configs and restart Apache. On a former 10.2 installation, there were /usr/sbin/apache.start and /usr/sbin/apache.stop, with permissions -r-s--x--T root apache. And before you ask, no, we can't give root access to this web designer.

    What would be the correct way to allow a non-root user to be able to stop/start/restart Apache in 11.1?

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Starting Apache as user Apache

    Write a /etc/sudoers line that will allow him to run:

    Code:
    sudo /etc/init.d/apache2 restart
    and then make an alias for this command.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •