1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 What are the default permissions?

Discussion in 'Troubleshooting and Problems' started by Verringer, Feb 8, 2015.

  1. Verringer

    Verringer Active Member

    I've moved servers and had a lot of issues, I had to reset my permissions for /usr/share/nginx/html so I ran 'chmod -R 000 /usr/share/nginx/html'

    Could anybody tell me how to reset this to what it used to be? I can't find the default permissions I need (excluding 0777 for internal_data and data)
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    In general, files and directories should be 0644 and 0755 respectively.

    The /data and /internal_data directories should be 0777 (recursively).
     
  3. Verringer

    Verringer Active Member

    So,

    chmod -R 0644 html (to correct the files & folders inside the html folder)
    chmod 0755 html (set the html folder permissions)
    chmod -R 0777 html/internal_data html/data

    Should work? I've done this and it returns a white page (aka not working).
     
  4. Sheratan

    Sheratan Well-Known Member

    Use this for folder

    Code:
    find /your/path/ -type d -exec chmod -R 755 {} \;
    for file:
    Code:
    find /your/path/ -type f -exec chmod -R 644 {} \;
    -edit-
    Don't forget to check chown.
     
  5. Verringer

    Verringer Active Member

    Worked, thank you so much.

    Edit: Unable to post anything, internal_data and data are set to 0777
     
  6. Sheratan

    Sheratan Well-Known Member

    Ah yes. I forgot. You need to change internal_data and data to 0777 recursively (again). Sorry :D
     
  7. Joe Link

    Joe Link Well-Known Member

    I'm having an Nginx permission issue. I shouldn't have a problem recursively mass changing everything to these permissions, right? No security issues?
     
    Last edited: Dec 1, 2015

Share This Page