Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2008
    Posts
    3
    Plugin Contributions
    0

    Default What permissions for all files and directories?

    (posting this anonymously to protect my site)

    Don't ask me how I did it, but I accidentally set the permission of every Zencart file and directory to 777. I think Fantastico is to blame, because it 'Prepared Zencart for removal' when I didn't want it to.

    Anyway, to fix it I recursively chmod'd all files and directories to 755, with the exception of configure.php which is now 444.

    Is this secure? or should I set some folders / files to something else?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: What permissions for all files and directories?

    If you were to change all directories/subdirectories to 755 and all files to 644 ... then you could go back and make the few changes that you might need for your image directories to 777 and files to 755 and the other directories that might need adjusting such as the cache directory and the like ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Nov 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: What permissions for all files and directories?

    Thanks for such a quick reply Linda, I'll take your advice... just wondering how I recursively chmod just the files and not directories...

  4. #4
    Join Date
    Nov 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: What permissions for all files and directories?

    actually here's the commands:

    chmod -R 644 * (to set everything to 644)

    then

    find . -type d -print0 | xargs -0 chmod 755 (sets directories to 755)

    then set images / cache / configure.php like you said.

    Thanks again, I can stop worrying now.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 27 Nov 2013, 01:59 AM
  2. OK to have all .php files with 755 permissions?
    By zcnb in forum Installing on a Linux/Unix Server
    Replies: 19
    Last Post: 5 Dec 2008, 05:41 PM
  3. Do I really need all those files and directories?
    By chancer in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 26 Sep 2007, 12:16 AM
  4. Where are the directories and files located?
    By milkandhoney in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 24 Jul 2007, 05:08 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR