Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2006
    Posts
    130
    Plugin Contributions
    0

    Default Set File Permissions from Command Line Help

    Can anyone help me with some handy scripts to set (chmod) file permissions from the command line? I am not too familiar with command line and would like to run some commands so I can quickly chmod files. This could be handy for others.

    I would like a script that will chmod all files with extension *.php in my store directory (including subdirectories) to 644. I could then modify the same script to chmod extension *.tpl .

    Also a similar script that would chmod all folders to 755.

    I have played around with a lot of module installations and have lost track of some of the permissions changes I have made. After I run the script(s) I can go back and make the chmod changes to the few directories/files that need different settings.

    Thanks for your support,

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Set File Permissions from Command Line Help

    This may be close to what you're after ...
    http://www.zen-cart.com/index.php?ma...roducts_id=104
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v139g Error: I can not write to this file. Please set the right user permissions
    By Intrepidations in forum Addon Sideboxes
    Replies: 1
    Last Post: 5 Jul 2012, 04:42 PM
  2. Replies: 8
    Last Post: 28 Sep 2011, 02:57 PM
  3. Easy Populate From Command Line
    By jmycr in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 24 Aug 2008, 03:25 PM
  4. Sending a MySQL SET command via PHP from ZC code
    By nkostaki in forum General Questions
    Replies: 7
    Last Post: 26 Jul 2006, 08:05 AM

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