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?


    --
    PrimarchBentley
    ------------------------------------------------------------------------
    PrimarchBentley's Profile: http://forums.opensuse.org/member.php?userid=21907
    View this thread: http://forums.opensuse.org/showthread.php?t=407156


  2. #2
    ken yap NNTP User

    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.


    --
    ken_yap
    ------------------------------------------------------------------------
    ken_yap's Profile: http://forums.opensuse.org/member.php?userid=221
    View this thread: http://forums.opensuse.org/showthread.php?t=407156


Posting Permissions

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