<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Webalution&#039;s Tech Share &#187; Shell Script</title>
	<atom:link href="http://webalution.com/techshare/category/shell-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://webalution.com/techshare</link>
	<description>Unix, Linux and Web Administration</description>
	<lastBuildDate>Sun, 17 Jan 2010 21:26:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>WordPress Security &#8211; Locking Down Permissions on WordPress Files</title>
		<link>http://webalution.com/techshare/2009/04/20/wordpress-security-locking-down-permissions-on-wordpress-files/</link>
		<comments>http://webalution.com/techshare/2009/04/20/wordpress-security-locking-down-permissions-on-wordpress-files/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 22:45:03 +0000</pubDate>
		<dc:creator>George Knerr</dc:creator>
				<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[Web Administration]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://webalution.com/techshare/?p=86</guid>
		<description><![CDATA[Many WordPress administrators use the popular WordPress security plugin &#8220;WP Security Scan&#8221;. In doing so you get a new administrative link at the bottom of your WordPress Dashboard labeled &#8220;Security&#8221;. If you drill down into this menu, Dashboard>Security>Scanner, the WP Security Scan plugin will check your WordPress file and directory permissions and give their recommendations. [...]]]></description>
			<content:encoded><![CDATA[<p>Many WordPress administrators use the popular WordPress security plugin &#8220;WP Security Scan&#8221;.  In doing so you get a new administrative link at the bottom of your WordPress Dashboard labeled &#8220;Security&#8221;.  If you drill down into this menu, Dashboard>Security>Scanner, the WP Security Scan plugin will check your WordPress file and directory permissions and give their recommendations.  If you have a number of WordPress web sites this can become a chore to change manually.</p>
<p>Here is a little script to do that for you.  It is self explanatory and can be ran even if your not using the WP Security Scan plugin.</p>
<p>Here is the script:</p>
<div class="command_line">
#!/bin/bash</p>
<p># Secures the WordPress directory.<br />
# Must be ran from the WordPress root directory.<br />
# examples &#8211; wordpresschmod.sh html or wordpresschmod.sh blog</p>
<p>if [ $# -ne 1 ]; then<br />
echo<br />
echo &#8220;Usage  $0 <wordpress root directory>&#8221;<br />
echo &#8220;Example  $0 html or $0 blog&#8221;<br />
echo<br />
exit 1;<br />
fi</p>
<p>DIR=$1<br />
echo<br />
echo &#8220;chmod -R 755 $DIR&#8221;<br />
echo<br />
chmod -R 755 $DIR<br />
echo<br />
echo &#8220;chmod 644 $DIR/.htaccess&#8221;<br />
echo<br />
chmod 644 $DIR/.htaccess<br />
echo<br />
echo &#8220;chmod 644 $DIR/wp-admin/index.php&#8221;<br />
echo<br />
chmod 644 $DIR/wp-admin/index.php<br />
echo<br />
echo &#8220;File Permission Security Changes Complete&#8221;<br />
echo</p>
<p>exit 0;
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://webalution.com/techshare/2009/04/20/wordpress-security-locking-down-permissions-on-wordpress-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

