What should be the permissions of main account directory (/home/account/)

Discussion in 'Site & Server Administration' started by usman1986200, Sep 15, 2008.

  1. #1
    What should be the permissions of main account directory. For example if my account name is demo. so what should i chmod /home/demo to?
     
    usman1986200, Sep 15, 2008 IP
  2. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #2
    If you are not using suPHP then it should be user:nobody else it is user:user.

    Kailash
     
    kailash, Sep 15, 2008 IP
  3. jliu

    jliu Peon

    Messages:
    235
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    711 will suffice
     
    jliu, Sep 16, 2008 IP
  4. jliu

    jliu Peon

    Messages:
    235
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If the server is setup as a web server and there is a public_html directory in the user's home directory, the website will not work which is what I assumed. However, if the server is not setup as a web server, 700 is appropriate as vikramsra said.
     
    jliu, Sep 16, 2008 IP
  5. usman1986200

    usman1986200 Peon

    Messages:
    61
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I am facing a different kind of problem now. i have public_html in it but the problem is when i open my site 403 forbidden message is shown

    Edit: 711 worked for me instead of 700
     
    usman1986200, Sep 16, 2008 IP
  6. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #6
    i think it depends OS to OS
     
    Bohra, Sep 16, 2008 IP
  7. zacharooni

    zacharooni Well-Known Member

    Messages:
    346
    Likes Received:
    20
    Best Answers:
    4
    Trophy Points:
    120
    #7
    The 711 (drwx--x--x) works because the nobody user needs execute permissions in the directory to see the .htaccess file and whatever you have set as the DirectoryIndex.
     
    zacharooni, Sep 18, 2008 IP