<?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>Small Program Blog &#187; security</title>
	<atom:link href="http://blog.sunnycyk.hk/?feed=rss2&#038;tag=security" rel="self" type="application/rss+xml" />
	<link>http://blog.sunnycyk.hk</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 05 Nov 2011 06:32:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to change file&#8217;s owner and group in Linux</title>
		<link>http://blog.sunnycyk.hk/?p=370</link>
		<comments>http://blog.sunnycyk.hk/?p=370#comments</comments>
		<pubDate>Wed, 23 Sep 2009 08:53:56 +0000</pubDate>
		<dc:creator>Sunny</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac Stuff]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://blog.sunnycyk.hk/?p=370</guid>
		<description><![CDATA[%chown username filename

This will set the filename&#8217;s owner to username
%chown username:groupname filename

This will set the filename&#8217;s owner to username, group to groupname
with option -R, you can change owner and group of the directory recursively to its sub-directories and content.
%chown -R username:groupname directoryname

]]></description>
			<content:encoded><![CDATA[<pre><code>%chown username filename
</code></pre>
<p>This will set the filename&#8217;s owner to username</p>
<pre><code>%chown username:groupname filename
</code></pre>
<p>This will set the filename&#8217;s owner to username, group to groupname</p>
<p>with option -R, you can change owner and group of the directory recursively to its sub-directories and content.</p>
<pre><code>%chown -R username:groupname directoryname
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.sunnycyk.hk/?feed=rss2&amp;p=370</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset Magento Directory Permission</title>
		<link>http://blog.sunnycyk.hk/?p=364</link>
		<comments>http://blog.sunnycyk.hk/?p=364#comments</comments>
		<pubDate>Wed, 16 Sep 2009 02:13:08 +0000</pubDate>
		<dc:creator>Sunny</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://blog.sunnycyk.hk/?p=364</guid>
		<description><![CDATA[When install new extension to Magento using Magento Connect, it will ask you to set the directory permission to writable to server user.  In order to do it, at command line, type in:
find . -type d -exec chmod 777 {} \; 
Once finish the installation, you should reset the permission:
find . -type d -exec [...]]]></description>
			<content:encoded><![CDATA[<p>When install new extension to Magento using Magento Connect, it will ask you to set the directory permission to writable to server user.  In order to do it, at command line, type in:</p>
<pre><code>find . -type d -exec chmod 777 {} \; </code></pre>
<p>Once finish the installation, you should reset the permission:</p>
<pre><code>find . -type d -exec chmod 755 {} \; </code></pre>
<p>I assume you know Unix &#8220;chmod&#8221; to change permission.  The number 777, each digit is the permission for Owner, Group, and World.  7 means Writable, Readable, and Executable.  You should think it in binary: 7 is &#8220;111&#8243; in binary mode, and it means all permission is on.  1 is on, 0 is off.  so, 755 means that All permission for owner, but only readable and executable to group and world because 5 is &#8220;101&#8243;.   </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sunnycyk.hk/?feed=rss2&amp;p=364</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List Open ports on Mac OS X</title>
		<link>http://blog.sunnycyk.hk/?p=355</link>
		<comments>http://blog.sunnycyk.hk/?p=355#comments</comments>
		<pubDate>Thu, 16 Jul 2009 06:14:03 +0000</pubDate>
		<dc:creator>Sunny</dc:creator>
				<category><![CDATA[Mac Stuff]]></category>
		<category><![CDATA[listening port]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[open port]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://blog.sunnycyk.hk/?p=355</guid>
		<description><![CDATA[Found this on the web.  I used to use fport to see which port is open on my machine, but it only works for Windows.  So, this will be helpful for any of you if you are looking for the same information.
open terminal windows, and type: sudo -lsof -i -P &#124; grep -i [...]]]></description>
			<content:encoded><![CDATA[<p>Found this on the web.  I used to use fport to see which port is open on my machine, but it only works for Windows.  So, this will be helpful for any of you if you are looking for the same information.</p>
<p>open terminal windows, and type: <b>sudo -lsof -i -P | grep -i &#8220;listen&#8221;</b></p>
<p>P.S.<br />
<b>| grep -i &#8220;listen&#8221; </b>  <&#8212; this is optional&#8230; but help you to grep which port is listening</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sunnycyk.hk/?feed=rss2&amp;p=355</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
