Results 1 to 4 of 4

Thread: Question about apache httpd.conf file permissions

  1. #1
    Join Date
    Jan 2009
    Location
    Queens
    Posts
    126

    Default Question about apache httpd.conf file permissions

    Hi I have an odd question. I want to have a very specific user to be able to edit the contents of httpd.conf file only. With the use of sudo how can I accomplish this, is it possible.

    Note: I dont want the user to be able to vi to any other files in the /etc directory

    Thanks all...
    Hmmmm I wonder how long before im good at this????????????

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

    Default Re: Question about apache httpd.conf file permissions

    What is it you want the user to be able to alter? There is probably a better way to give restricted permissions to the user.

  3. #3
    Join Date
    Jan 2009
    Location
    Queens
    Posts
    126

    Default Re: Question about apache httpd.conf file permissions

    Hmmm Im glad you asked actually it is php settings that they may need to alter. e.g:

    Register Globals: OFF
    Safe Mode: OFF
    File Uploads: ON
    Session auto start: OFF
    Session save path: /var/lib/php/session
    Short Open Tags: ON
    Output Buffering: OFF
    Display Errors: OFF
    XML enabled: Yes

    some of this I've already done but he may need more. The thing is I don't want to give away my root passwd.
    And also some other people may come later that's why i'm trying to figure out how to give some one W permissions on individual files.

    Thanks for replying...
    Hmmmm I wonder how long before im good at this????????????

  4. #4
    Join Date
    Jan 2009
    Location
    Queens
    Posts
    126

    Default Re: Question about apache httpd.conf file permissions

    Well I think I figure it out. Just for other people that may be interested this is what i did

    the htdocs located in /srv/www/htdocs I changed the permissions rwx rx x 755 to rwx rwx x 775 then I added a group and added the user to that group. Then all you have to do is give rw permission to the htdocs to the newly created group. I hope is clear...
    Hmmmm I wonder how long before im good at this????????????

Posting Permissions

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