Results 1 to 4 of 4

Thread: recursive permisisons

  1. #1
    charlesh's Avatar
    charlesh is offline Master Glow Jedi
    Join Date
    Aug 2006
    Location
    Atlanta, GA - better than you imagined it would be.
    Posts
    189

    Default recursive permisisons

    I am experimenting with cs-cart. Thanks, Matt, for the idea. I think it is going to work out. They reccomend running the cart on a apache mod type server, but for security reasons, I am going to try it on a fast -cgi server. They require on cgi that all directories be set to a 755 permission and that all files be set to 644.

    This seems kinda strange to me - does anyone know why with a cgi that the permissions have to be set that way?

    secondly, is there an easier way to recurse directories and set all files to 644 and all directories to 755 without going through each directory in file manager?

    Thanks for all the help!

    CharlesH

  2. #2
    sergey is offline Master Glow Jedi
    Join Date
    Aug 2005
    Posts
    472

    Default

    With PHP compiled as CGI or FastCGI, you can set permissions on files and folders maximum to 755. Otherwise your php script will produce an Internal Server Error. It's recommended to set permissions on folders to 755 and for files to 644. You can set the permissions on files and folders recursively using these commands:

    Code:
    find -type d -exec chmod 755 {} ';' -  it will set permissions on all folders to  755;
    find -type f -exec chmod 644 {} ';' - it will set permissions on all files to 644

  3. #3
    charlesh's Avatar
    charlesh is offline Master Glow Jedi
    Join Date
    Aug 2006
    Location
    Atlanta, GA - better than you imagined it would be.
    Posts
    189

    Default

    You just saved me perhaps 2 to 3 hours! You da man! Certainly, it is better to work smarter than to work harder.

    Thanks for the advice - it worked like a charm!

    CharlesH

  4. #4
    sergey is offline Master Glow Jedi
    Join Date
    Aug 2005
    Posts
    472

    Default

    no problem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14