Announcement

Collapse
No announcement yet.

Catalog folder 755 not 777 is this ok?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Catalog folder 755 not 777 is this ok?

    I just noticed that my catalog and cgi-bin folder permssions are both set to 755. Reading many forum messages etc. it seems the catalog folder should be set to 777 and not 755 (ie it is currently excluding group and other writes).

    Everything appears to work ok, but could I expect to have problems with this?
    Why is 777 for recommended for catalog instead of 755?

    Duncan R

    #2
    777 is an open all access setting, whereby the permission are providing owner, group and world permissions to read, write and execute files with this permision.

    It is not wise to chmod files to 0777 as anyone else on that server is effectively given a right (by virtue of the permission you granted the file) to access it, i.e. group and world writable.

    Many times people suggest changing to 777 because it then removes any issues with your UID/GID having a permission problem with accessing or doing things with that file.

    permissions of 0755 are more secure in this respect and should work fine, which is the permission of owner = read, write and execute, group = read and execute and world = read and execute.

    The 'owner' element which is given permission to write is the important part, as the cgi-files will have been uploaded under the owners username, which will be connected to the UID assigned to the server, so that is how it is able to work, because the owned file has the permission to do things on the server, but group or world can not...

    permissions is a long winded thing and maybe I have not explained it that well, but general gist anyway...

    Comment


      #3
      Thanks for the response - I understand much better now.

      Duncan R

      Comment

      Working...
      X