• 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?

Verringer

Active member
#1
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)
 

Brogan

XenForo moderator
Staff member
#2
In general, files and directories should be 0644 and 0755 respectively.

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

Verringer

Active member
#3
In general, files and directories should be 0644 and 0755 respectively.

The /data and /internal_data directories should be 0777 (recursively).
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).
 

Sheratan

Well-known member
#4
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.
 

Verringer

Active member
#5
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.
Worked, thank you so much.

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

Joe Link

Well-known member
#7
In general, files and directories should be 0644 and 0755 respectively.

The /data and /internal_data directories should be 0777 (recursively).
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: