<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/chmod</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 26 May 2013 11:39:54 GMT</pubDate>
<item>
<title>(Bash) Changing permissions recursively by files and directories - wnasich</title>
<link>http://snipplr.com/view/64753/changing-permissions-recursively-by-files-and-directories/</link>
<description><![CDATA[ <p>In order to avoid make files executable,  you can use these to chmod files and directories differently.</p> ]]></description>
<pubDate>Fri, 27 Apr 2012 00:33:53 GMT</pubDate>
<guid>http://snipplr.com/view/64753/changing-permissions-recursively-by-files-and-directories/</guid>
</item>
<item>
<title>(Bash) Change Permission - iroybot</title>
<link>http://snipplr.com/view/61212/change-permission/</link>
<description><![CDATA[ <p>some helpful chomod commands</p> ]]></description>
<pubDate>Sat, 26 Nov 2011 06:44:50 GMT</pubDate>
<guid>http://snipplr.com/view/61212/change-permission/</guid>
</item>
<item>
<title>(PHP) Recursive chmod in PHP - madc</title>
<link>http://snipplr.com/view/60573/recursive-chmod-in-php/</link>
<description><![CDATA[ <p>Heavily based on "Recursive chmod in PHP" by Tenzer ( 03/10/08 http://snipplr.com/view/5350/ )</p> ]]></description>
<pubDate>Sun, 06 Nov 2011 08:06:07 GMT</pubDate>
<guid>http://snipplr.com/view/60573/recursive-chmod-in-php/</guid>
</item>
<item>
<title>(Bash) Restore file &amp;amp; folder default permissions - klovera</title>
<link>http://snipplr.com/view/59920/restore-file--folder-default-permissions/</link>
<description><![CDATA[ <p>When modifying file permissions it is sometimes necessary to go back to the drawing board and set back to the default permissions. The following command can be used via ssh and takes a couple seconds vs trying to do this via ftp file by file (which can take a very long time depending on the size of your website). Change to the directory you want changed, then run the following. It will set permission for all files to 644 and all directories to 755. This works for pretty much any Linux server.</p> ]]></description>
<pubDate>Tue, 18 Oct 2011 13:39:13 GMT</pubDate>
<guid>http://snipplr.com/view/59920/restore-file--folder-default-permissions/</guid>
</item>
<item>
<title>(Bash) chmod subdirectories and files - loungerdork</title>
<link>http://snipplr.com/view/55096/chmod-subdirectories-and-files/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 09 Jun 2011 22:57:54 GMT</pubDate>
<guid>http://snipplr.com/view/55096/chmod-subdirectories-and-files/</guid>
</item>
<item>
<title>(Bash) Chmod files recursively to 644 - jfine</title>
<link>http://snipplr.com/view/42216/chmod-files-recursively-to-644/</link>
<description><![CDATA[ <p>-print0 and -0 are used to allow for spaces and other wacky chars in file names</p> ]]></description>
<pubDate>Thu, 14 Oct 2010 02:02:59 GMT</pubDate>
<guid>http://snipplr.com/view/42216/chmod-files-recursively-to-644/</guid>
</item>
<item>
<title>(Bash) Chmod directories recursively to 755 - jfine</title>
<link>http://snipplr.com/view/42215/chmod-directories-recursively-to-755/</link>
<description><![CDATA[ <p>-print0 and -0 are used to allow for spaces and other wacky chars in directory names</p> ]]></description>
<pubDate>Thu, 14 Oct 2010 02:01:51 GMT</pubDate>
<guid>http://snipplr.com/view/42215/chmod-directories-recursively-to-755/</guid>
</item>
<item>
<title>(PHP) Make Directory - vagrantradio</title>
<link>http://snipplr.com/view/34446/make-directory/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 13 May 2010 15:46:53 GMT</pubDate>
<guid>http://snipplr.com/view/34446/make-directory/</guid>
</item>
<item>
<title>(PHP) Easy folder structure set up - chlab</title>
<link>http://snipplr.com/view/28038/easy-folder-structure-set-up/</link>
<description><![CDATA[ <p>Here is a function you can use to automatically set up a complex folder structure with a specified file mode. All you have to do is create the "root" directory and pass an array describing the folder structure you would like to create in it. If the directory already contains a part of the desired directory structure, the script will set the specified file mode on every existing folder. There's an example how to use the function at the bottom of the snippet.

I use this to set up user home's. I tested this with PHP 5.2.11 on Apache running on Mac OS X. It should work on most Linux servers. It won't work on Windows.

This function should be easy to modify for your needs or integrate into a class. Have fun.</p> ]]></description>
<pubDate>Tue, 09 Feb 2010 09:34:41 GMT</pubDate>
<guid>http://snipplr.com/view/28038/easy-folder-structure-set-up/</guid>
</item>
<item>
<title>(Bash) chmod 777 bash -fixes magento - joe-bbb</title>
<link>http://snipplr.com/view/23785/chmod-777-bash-fixes-magento/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 26 Nov 2009 06:26:49 GMT</pubDate>
<guid>http://snipplr.com/view/23785/chmod-777-bash-fixes-magento/</guid>
</item>
<item>
<title>(PHP) Recursive chmod - ginoplusio</title>
<link>http://snipplr.com/view/22175/recursive-chmod/</link>
<description><![CDATA[ <p>recursively chmod files to 644 and directories to 755</p> ]]></description>
<pubDate>Fri, 30 Oct 2009 09:48:36 GMT</pubDate>
<guid>http://snipplr.com/view/22175/recursive-chmod/</guid>
</item>
<item>
<title>(Bash) Changing permission for folders only and files only - danshields</title>
<link>http://snipplr.com/view/21928/changing-permission-for-folders-only-and-files-only/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 26 Oct 2009 18:26:55 GMT</pubDate>
<guid>http://snipplr.com/view/21928/changing-permission-for-folders-only-and-files-only/</guid>
</item>
<item>
<title>(Bash) make all files (not directories) not executable - 1b0t</title>
<link>http://snipplr.com/view/20309/make-all-files-not-directories-not-executable/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 27 Sep 2009 15:34:09 GMT</pubDate>
<guid>http://snipplr.com/view/20309/make-all-files-not-directories-not-executable/</guid>
</item>
<item>
<title>(Bash) UNB - file permissions - stiobhart</title>
<link>http://snipplr.com/view/15622/unb--file-permissions/</link>
<description><![CDATA[ <p>permissions for various folders in UNB installation</p> ]]></description>
<pubDate>Sun, 07 Jun 2009 11:16:36 GMT</pubDate>
<guid>http://snipplr.com/view/15622/unb--file-permissions/</guid>
</item>
<item>
<title>(Other) CHMOD files recursively - rafa</title>
<link>http://snipplr.com/view/14776/chmod-files-recursively/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 06 May 2009 13:32:48 GMT</pubDate>
<guid>http://snipplr.com/view/14776/chmod-files-recursively/</guid>
</item>
<item>
<title>(PHP) Recursive chmod with PHP - ping_ch</title>
<link>http://snipplr.com/view/12565/recursive-chmod-with-php/</link>
<description><![CDATA[ <p>I use it when i've problems with permissions of user-uploaded files.</p> ]]></description>
<pubDate>Wed, 25 Feb 2009 07:52:46 GMT</pubDate>
<guid>http://snipplr.com/view/12565/recursive-chmod-with-php/</guid>
</item>
<item>
<title>(Apache) Prevent Access to multiple file types - luizlopes</title>
<link>http://snipplr.com/view/7092/prevent-access-to-multiple-file-types/</link>
<description><![CDATA[ <p>This is good to add to folders which are chmod to 777.</p> ]]></description>
<pubDate>Wed, 02 Jul 2008 13:14:29 GMT</pubDate>
<guid>http://snipplr.com/view/7092/prevent-access-to-multiple-file-types/</guid>
</item>
<item>
<title>(PHP) Recursive chmod in PHP - Tenzer</title>
<link>http://snipplr.com/view/5350/recursive-chmod-in-php/</link>
<description><![CDATA[ <p>A small function I made to chmod directories and files recursively, with different permissions.</p> ]]></description>
<pubDate>Mon, 10 Mar 2008 09:55:40 GMT</pubDate>
<guid>http://snipplr.com/view/5350/recursive-chmod-in-php/</guid>
</item>
<item>
<title>(Bash) Tomcat startup &amp;amp; stop scripts for OS X - chrisaiv</title>
<link>http://snipplr.com/view/5322/tomcat-startup--stop-scripts-for-os-x/</link>
<description><![CDATA[ <p>Tomcat expects certain environment variables to be defined before it starts.  Make two scripts and save them as start_tomcat &amp; stop_tomcat respectively (No File Extension).  Then make them executable with this.  chisaiv$ chmod ug+x start_tomcat stop_tomcat.  Then finally run your scripts like so chrisaiv$ /usr/local/bin/start_tomcat</p> ]]></description>
<pubDate>Sat, 08 Mar 2008 17:06:47 GMT</pubDate>
<guid>http://snipplr.com/view/5322/tomcat-startup--stop-scripts-for-os-x/</guid>
</item>
<item>
<title>(Bash) fix permissions for files and directories - jhenry</title>
<link>http://snipplr.com/view/3538/fix-permissions-for-files-and-directories/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 20 Aug 2007 08:06:52 GMT</pubDate>
<guid>http://snipplr.com/view/3538/fix-permissions-for-files-and-directories/</guid>
</item>
</channel>
</rss>