Community @ The Turning Gate

Support community for TTG plugins and products.

You are not logged in.

#1 2019-12-03 21:01:56

speacock110
Member
Registered: 2013-04-11
Posts: 150

File and folder permissions

I am trying to check/tidy up permissions on my local web server, then I will check my hosts.

What are the permission requirements on backlight folders and files. Currently i have reset my site to use 644 do i need 744 on the backlight folder

Offline

#2 2019-12-03 21:05:10

speacock110
Member
Registered: 2013-04-11
Posts: 150

Re: File and folder permissions

Sorry to be more accurate 744 on folders and 644 on files

Offline

#3 2019-12-03 22:10:14

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 16,968
Website

Re: File and folder permissions


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2 test site, Pangolin test site

Offline

#4 2019-12-03 22:48:51

speacock110
Member
Registered: 2013-04-11
Posts: 150

Re: File and folder permissions

I have cleaned the permissions on my local site to 755 on all folders, 744 on all files but to run Update Albums I had to put 777 on the backlight folder and Galleries.777 just on data allowed me to do some things but not update albums in backlight settings. This is no problem for my Local versions but i would like to know the bare minimum for more public versions

Offline

#5 2019-12-03 22:57:16

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 16,968
Website

Re: File and folder permissions

This is no problem for my Local versions but i would like to know the bare minimum for more public versions

Ben will need to address that.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2 test site, Pangolin test site

Offline

#6 2019-12-04 05:21:50

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,133

Re: File and folder permissions

In recent years it usually hasn't been necessary to alter permissions at all; hosts are configured to be able to write to locations as needed.
There's no universally correct set of permissions that will work across all environments.  The permissions and ownership needed for the server to create files and directories as-needed can vary from host-to-host.

A reasonably-safe set, if you do need to change them is:
All directories: 755
All files: 644

1) Safer still would be these for these directories and contents within them for backlight/data, backlight/modules, 'galleries' (and other top-level gallery directories):
directories: 755
files: 644

2) And all other backlight/ locations
directories: 555
files: 444

777 is dangerous, especially on shared hosting.  Any rogue script or user under any user account on that server can overwrite your directories and files.

A good way to test what your server is configured to set writeable locations, is to create an album through Publisher or Backlight admin, then log in via FTP and check the permissions of directories and files within the newly-created album.

Offline

Board footer

Powered by FluxBB