<?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>Cow Computing &#187; Security</title>
	<atom:link href="http://www.cowcomputing.com/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cowcomputing.com</link>
	<description>Share Info about Cloud Computing &#38; Programming</description>
	<lastBuildDate>Thu, 22 Jul 2010 17:10:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Mapping Network Drive in Windows 7</title>
		<link>http://www.cowcomputing.com/2010/06/05/mapping-network-drive-in-windows-7/</link>
		<comments>http://www.cowcomputing.com/2010/06/05/mapping-network-drive-in-windows-7/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 08:17:15 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Map Network Drive]]></category>
		<category><![CDATA[Security Policy]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.cowcomputing.com/?p=217</guid>
		<description><![CDATA[Unlike Windows XP, mapping a network drive in Windows 7 is a nightmare. It is possible that during the mapping of a network drive, no matter how hard you try to enter your credentials or the drive is actually password-less, it still prompt you for a password repeatedly. This is annoying and is due to [...]]]></description>
			<content:encoded><![CDATA[<p>Unlike Windows XP, mapping a network drive in Windows 7 is a nightmare. It is possible that during the mapping of a network drive, no matter how hard you try to enter your credentials or the drive is actually password-less, it still prompt you for a password repeatedly. This is annoying and is due to the security settings on Network Security. I shall introduce you two method to get around this annoying problem. *Do note that, for Windows 7 Home edition, the security setting is not available (RIDICULOUS isn&#8217;t it?), either you upgrade to Professional / Ultimate Edition or you could use Method 2 to achieve that (HURRAY!)</p>
<p><strong><span style="text-decoration: underline;">Method 1 (Windows 7 Professional / Ultimate Edition)</span></strong></p>
<ol>
<li>Under &#8220;Control Panel&#8221;, find &#8220;System and Security&#8221;</li>
<li>Open &#8220;Administrative Tools&#8221;</li>
<li>Double Click &#8220;Local Security Policy&#8221;</li>
<li>Expand &#8220;Local Policies&#8221;</li>
<li>Click &#8220;Security Options&#8221; and Scroll to find &#8220;Network Security: LAN Manager Authentication Level&#8221;</li>
<li>Choose &#8220;Send LM &amp; NTLM, use NTLMv2 session security is negotiated&#8221; for the drop down.</li>
<li>Done. you can now map network drive as normal (like in XP)</li>
</ol>
<p><span id="more-217"></span><br />
<strong><span style="text-decoration: underline;"> Method 2 (Windows 7 Home Edition)</span></strong></p>
<ol>
<li> Use notepad and save the snippet below as win7fix.reg
<pre class="brush:bash">Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
"lmcompatibilitylevel"=dword:00000002</pre>
</li>
<li>Double click the win7fix.reg you just create to run it</li>
<li>Press &#8220;Yes&#8221; to add that into registry</li>
<li>Done. you can now map network drive as normal (like in XP)</li>
</ol>
<p><br/></p>
<h6>ref. <a href="http://www.ntnu.no/itinfo/read_article.php?aid=711">http://www.ntnu.no/itinfo/read_article.php?aid=711</a></h6>
]]></content:encoded>
			<wfw:commentRss>http://www.cowcomputing.com/2010/06/05/mapping-network-drive-in-windows-7/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Jailkit &#8211; Limit User Account on Linux</title>
		<link>http://www.cowcomputing.com/2010/03/12/jailkit-limit-user-account-on-linux/</link>
		<comments>http://www.cowcomputing.com/2010/03/12/jailkit-limit-user-account-on-linux/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 07:16:07 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[chroot]]></category>
		<category><![CDATA[User Account]]></category>

		<guid isPermaLink="false">http://www.cowcomputing.com/?p=201</guid>
		<description><![CDATA[There&#8217;s once I was required to setup a limited shell access user account on a commercial hardware product, in which to secure the original system from being modified and at the same time to provide a flexible environment for general work. I was on the way to make use of chroot command. Then i was [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s once I was required to setup a limited shell access user account on a commercial hardware product, in which to secure the original system from being modified and at the same time to provide a flexible environment for general work. I was on the way to make use of chroot command. Then i was lucky to came across <a href="http://olivier.sessink.nl/jailkit">Jailkit</a>, which saved me a lot of time. So, i would like to use this post to give a little introduction on how to use it.</p>
<pre class="brush:bash"># First, let's create a directory for the jail account
mkdir /jail
chown root:root /jail

# Then we create a new user account specially for jail account
# *replace &lt;group name&gt;, &lt;username&gt;, &lt;password&gt; with your own value
groupadd &lt;group name&gt;
useradd -d /home/jail -g &lt;group name&gt; -p &lt;password&gt; &lt;username&gt;

# For example, if we only want to allow the jail account to have ssh and basic shell access
jk_init -v -j /jail basicshell ssh

# Then we shall jail the user account we previously created to the jail directory
jk_jailuser -m -j /jail &lt;username&gt;
</pre>
<p><span id="more-201"></span><br />
Now the jail account and file system is ready, however if you want more control, we can do the following.</p>
<pre class="brush:bash"># OPTIONAL: Edit /jail/etc/passwd file and /jail/etc/group file to further limit the access
# The following further limit the user logged in jail account to have only access to bash
# Assume the jail user account &amp; group = jail_user, and we edit the passwd file
jail_user:x:1016:1016:/home/jail:/bin/bash

# edit group file
jail_user:x:1016
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cowcomputing.com/2010/03/12/jailkit-limit-user-account-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Keystore and Self-Signed Certificate with openSSL</title>
		<link>http://www.cowcomputing.com/2010/01/22/creating-keystore-and-self-signed-certificate-with-openssl/</link>
		<comments>http://www.cowcomputing.com/2010/01/22/creating-keystore-and-self-signed-certificate-with-openssl/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 04:49:09 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Certificate]]></category>
		<category><![CDATA[Key]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://www.cowcomputing.com/?p=159</guid>
		<description><![CDATA[It is in fact very easy to generate a self-signed certificate with openSSL. In order to generate Keystore and Certificate using open SSL, we first need to generate a key openssl genrsa -out &#60;name of private key file&#62;.key 1024 then we need to generate a Certificate Signing Request by reading the private key we just [...]]]></description>
			<content:encoded><![CDATA[<p>It is in fact very easy to generate a self-signed certificate with openSSL.</p>
<p>In order to generate Keystore and Certificate using open SSL, we first need to  generate a key</p>
<pre class="brush:bash">openssl genrsa -out &lt;name of private key file&gt;.key 1024</pre>
<p>then we need to generate a Certificate Signing Request by reading the private  key we just generated</p>
<pre class="brush:bash">openssl req -new -key &lt;name of private key file&gt;.key -out &lt;name of csr file&gt;.csr</pre>
<p>After that, we could Self-Sign the certificate (note: if you only want the key-cert pair, you could stop after this step, else go to the next step for keystore generation).</p>
<pre class="brush:bash">openssl x509 -req- days &lt;num of days valid&gt; -in &lt;name of csr file&gt;.csr -signkey &lt;name of private key file&gt;.key -sha1 -out  &lt;name of cert file&gt;.cert</pre>
<p>Finally, with the key and certificate, we could combine them into a keystore</p>
<pre class="brush:bash">openssl pkcs12 -name &lt;key alias&gt; -export -in &lt;name of cert file&gt;.cert -inkey &lt;name of private key file&gt;.key -out &lt;name  of the keystore file&gt;.p12</pre>
<p>The key and certificate is ready to be used in various applications (e.g. Dovecot, Apache WebServer&#8230;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cowcomputing.com/2010/01/22/creating-keystore-and-self-signed-certificate-with-openssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
