Professional Web Applications Themes

which user starts my apache? - Mac Networking

hi there i got apache running, ipeee! (well i just turned personal web sharing on.) now, for security i want that one special - restricted - user starts apache at the boot up. so my question is how can i tell a restricted non-admin user to start up apache and how can i make this user login at boot time for this task without showing up as a normal desktop user? thanks, leo...

  1. #1

    Default which user starts my apache?

    hi there

    i got apache running, ipeee! (well i just turned personal web sharing on.)
    now, for security i want that one special - restricted - user starts apache
    at the boot up.

    so my question is how can i tell a restricted non-admin user to start up
    apache and how can i make this user login at boot time for this task without
    showing up as a normal desktop user?

    thanks, leo


    leo Guest

  2. #2

    Default Re: which user starts my apache?

    In article <bvnars$1f1e$netspace.net.au>, leo
    <myrealbox.com> wrote:
     

    Simply turn personal Web sharing on, as you have already done.

    --
    Jerry Kindall, Seattle, WA <http://www.jerrykindall.com/>

    Send only plain text messages under 32K to the Reply-To address.
    This mailbox is filtered aggressively to thwart spam and viruses.
    Jerry Guest

  3. #3

    Default Re: which user starts my apache?

    In article <bvnars$1f1e$netspace.net.au>,
    "leo" <myrealbox.com> wrote:
     


    Apache normally starts as root using /System/Library/Startup
    Items/Apache/Apache. It then serves connections with the user and group
    specified in the httpd.conf file:

    -------------
    #
    # If you wish httpd to run as a different user or group, you must run
    # httpd as root initially and it will switch.
    #
    # User/Group: The name (or #number) of the user/group to run httpd as.
    # . On SCO (ODT 3) use "User nouser" and "Group nogroup".
    # . On HPUX you may not be able to use shared memory as nobody, and the
    # suggested workaround is to create a user www and use that user.
    # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
    # when the value of (unsigned)Group is above 60000;
    # don't use Group "#-1" on these systems!
    #
    User www
    Group www

    -------------


    You can use 'su' to launch scripts as another user. For example, I
    don't want Resin running as root so I launch it as user www using:

    /usr/bin/su -m www -c 'exec /usr/local/resin/bin/httpd.sh -start'


    If you do this with Apache, it won't be able to listen on port 80 and it
    won't be able to do the user switching feature mentioned above.

    Always specify a full path to 'su' in your scripts. If you don't,
    somebody can hijack the call to 'su' by adding their own version to
    another, less secure, location in the command search path.
    Kevin Guest

  4. #4

    Default Re: which user starts my apache?

    In article <bvnars$1f1e$netspace.net.au>,
    "leo" <myrealbox.com> wrote:
     

    it's in /etc/http/http.conf. There's a

    User www
    Group www

    in mine. If you want to know how to configure Apache, there's the web
    pages in http://httpd.apache.org/ or buy a book like the O'Reily book
    http://safari.oreilly.com/?XmlId=0-596-00203-3

    --
    DeeDee, don't press that button! DeeDee! NO! Dee...



    Michael Guest

Similar Threads

  1. Audio starts on click/stops/and finaly starts correctwith video
    By N steht f?r? in forum Macromedia Flash Flashcom
    Replies: 0
    Last Post: December 19th, 02:30 PM
  2. Determining Apache .htaccess user name ?
    By Andy Hassall in forum PHP Development
    Replies: 0
    Last Post: August 16th, 07:59 PM
  3. Php-html and apache user
    By Lorenza Soverini in forum PHP Development
    Replies: 5
    Last Post: October 28th, 07:01 PM
  4. linux file permissions on maildir, apache user
    By Julia Goolia in forum PHP Development
    Replies: 1
    Last Post: September 22nd, 09:20 PM
  5. user verification with apache/php question
    By David Otton in forum PHP Development
    Replies: 1
    Last Post: August 26th, 06:48 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139