<?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>Kerry D. Wong &#187; Samba</title>
	<atom:link href="http://www.kerrywong.com/tag/samba/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kerrywong.com</link>
	<description></description>
	<lastBuildDate>Fri, 03 Sep 2010 00:51:09 +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>Windows Administrative Share With Samba</title>
		<link>http://www.kerrywong.com/2009/10/04/windows-administrative-share-with-samba/</link>
		<comments>http://www.kerrywong.com/2009/10/04/windows-administrative-share-with-samba/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 17:55:33 +0000</pubDate>
		<dc:creator>kwong</dc:creator>
				<category><![CDATA[Linux/BSD]]></category>
		<category><![CDATA[Samba]]></category>

		<guid isPermaLink="false">http://www.kerrywong.com/?p=1482</guid>
		<description><![CDATA[In a heterogeneous computing environment (e.g. Linux and Windows), it is necessary to use Samba to share files between the Linux systems and Windows systems. Due to the security enhancements in Windows XP SP2 and above however, the administrative share access (e.g. \\{computer name}\c$ is disabled by default. To enable administrative share access from Linux [...]]]></description>
			<content:encoded><![CDATA[<p>In a heterogeneous computing environment (e.g. Linux and Windows), it is necessary to use <a href="http://samba.org/">Samba</a> to share files between the Linux systems and Windows systems. Due to the security enhancements in Windows XP SP2 and above however, the administrative share access (e.g. \\{<strong><em>computer name</em></strong>}\c$ is disabled by default.<span id="more-1482"></span></p>
<p>To enable administrative share access from Linux hosts, we need to change the Windows machine&#8217;s security policy. My assumption is that you are using Windows XP. You may need to make further changes depending on the version of Windows you are using.</p>
<p>The security policy snap-in is located at </p>
<blockquote><p>c:\windows\system32\secpol.msc</p></blockquote>
<p>Select local policies and then Security Options:<br />
<a href="http://www.kerrywong.com/blog/wp-content/uploads/2009/10/security_setting.gif"><img src="http://www.kerrywong.com/blog/wp-content/uploads/2009/10/security_setting.gif" alt="security_setting" title="security_setting" width="600" height="424" class="aligncenter size-full wp-image-1496" /></a><br />
Then select sharing and security model for local accounts:<br />
<a href="http://www.kerrywong.com/blog/wp-content/uploads/2009/10/security_setting_1.gif"><img src="http://www.kerrywong.com/blog/wp-content/uploads/2009/10/security_setting_1.gif" alt="security_setting_1" title="security_setting_1" width="418" height="505" class="aligncenter size-full wp-image-1495" /></a></p>
<p>Under the enhanced security scheme, &#8220;Guest only: local users authenticate as guests&#8221; is chosen. This policy means that administrative network access is treated as if it was done with a guest account and therefore you would get permission denied error when trying to access an administrative share &#8212; even though your account has administrative rights locally.</p>
<p>To allow administrative share on Samba network, you can simply select the other option &#8220;Classic: local users authenticate as themselves&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kerrywong.com/2009/10/04/windows-administrative-share-with-samba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Samba File Server Using a Parallel External Hard Drive</title>
		<link>http://www.kerrywong.com/2007/01/23/samba-file-server-using-a-parallel-external-hard-drive/</link>
		<comments>http://www.kerrywong.com/2007/01/23/samba-file-server-using-a-parallel-external-hard-drive/#comments</comments>
		<pubDate>Tue, 23 Jan 2007 10:48:21 +0000</pubDate>
		<dc:creator>kwong</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Parallel]]></category>
		<category><![CDATA[Samba]]></category>

		<guid isPermaLink="false">http://dimension/2007/01/23/samba-file-server-using-a-parallel-external-hard-drive/</guid>
		<description><![CDATA[I have a DataStor parallel port external hard drive enclosure bought in 1997 and a laptop computer (Pentium MMX 133, 128M RAM) from around 2001. By today&#8217;s technology standard, those are indeed old dinosaurs. My DataStor external enclosure worked great under Windows 95, it supported hot plug and play. I used it under Windows 98 [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">I have a DataStor parallel port external hard drive enclosure bought in 1997 and a laptop computer (Pentium MMX 133, 128M RAM) from around 2001.</span><span id="more-137"></span><span style="font-size: 10pt; font-family: Verdana;"> By today&rsquo;s technology standard, those are indeed old dinosaurs. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;"><o:p></o:p>My DataStor external enclosure worked great under Windows 95, it supported hot plug and play. I used it under Windows 98 as well. But the driver support became pretty bad under Windows 2000 and made reliable backups virtually impossible. Furthermore, there has been no official support for the drivers since Windows 2000. So the external case has been sitting there gathering dust for at least 6 years now. So I decided to try to find out whether I could utilize these old equipments under Linux. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;"><o:p></o:p>The Linux distro I used is RedHat 9.0. There&rsquo;s no particular reason why I chose RedHat 9.0 distro as oppose to SuSE or Mandrake, I just happened to have the CDs lying around. I am pretty sure that almost any Linux distro will be able to do the job. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;"><o:p></o:p>The installation of RedHat 9.0 went pretty effortlessly. Within an hour, I was able to run it. Amazingly the installation recognized virtually every piece of hardware I had on that laptop. Even KDE loaded up correctly, albeit slow. But I was not concerned about the GUI performance anyway, since I was going to use it as a file server and the configurations could be done in text mode.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;"><o:p></o:p>Then I set up Samba and was ready to attach my parallel port enclosure. I have a 13G IDE Seagate hard drive from 1999, which is a perfect candidate for the file server.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;"><o:p></o:p>To get the system recognize my parallel port hard drive turned out to be a little bit more work. Sadly, since the days of parallel enclosures were long passed, the information I could find on the internet was very sketchy. Nevertheless, I found an excellent manual on how to setup parallel port device for running on Linux on <a href="http://cyberelk.net/tim/parport/paride.html">http://cyberelk.net/tim/parport/paride.html</a>. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;"><o:p></o:p>Here are the steps on how to get DataStor parallel port external hard drive to work.<o:p></o:p></span></p>
<p style="margin-left: 0.5in;" class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">1. Make sure that the parallel port is set to use EPP mode in BIOS (standard mode works also, but is significantly slower). If the BIOS has a setting for whether the computer should support Plug and Play, choose No (Non Plug Play). Since my computer is pretty old, for the OS to recognize the drive geometry properly, I also needed to select Disk Type to be other (e.g. UNIX) instead of DOS (e.g. Windows).<o:p> </o:p></span></p>
<p style="margin-left: 0.5in;" class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">2. Modify <strong>/etc/fstab</strong>, add the following line so that the external drive can be mounted later:<o:p></o:p></span></p>
<blockquote>
<p style="margin-left: 0.5in;" class="MsoNormal"><strong><span style="font-size: 10pt; font-family: Verdana;">/dev/pda1<span>    </span>/mnt/hdd<span>      </span>ext2<span>    </span>defaults<span>         </span>0 0<o:p></o:p></span></strong></p>
</blockquote>
<p style="margin-left: 0.5in;" class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">3. Log in as root, go to<strong> /sbin</strong> and type the following command in the given order to setup the parport driver:<o:p></o:p></span></p>
<blockquote>
<pre style="margin-left: 0.5in;"><strong><span style="font-family: Verdana;">modprobe paride<o:p></o:p>insmod dstr<o:p></o:p>insmod pd<o:p></o:p></span></strong><span style="font-size: 10pt; font-family: Verdana;"><o:p> </o:p></span></pre>
</blockquote>
<p style="margin-left: 0.5in;" class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">And the driver for the external drive is now loaded. To verify take a look using <strong>dmesg</strong> and lines similar to the following should be in the log:<o:p></o:p></span></p>
<blockquote>
<p style="margin-left: 0.5in;" class="MsoNormal"><strong><span style="font-size: 10pt; font-family: Verdana;">paride: version 1.06 installed (parport)<o:p></o:p> paride: dstr registered as protocol 0<o:p></o:p> pd: pd version 1.05, major 45, cluster 64, nice 0<o:p></o:p> pda: Sharing parport0 at 0&#215;378<o:p></o:p> pda: dstr 1.01, DataStor EP2000 at 0&#215;378, mode 4 (EPP-32), delay 1<o:p></o:p> pda: ST313032A, master, 25434228 blocks [12419M], (16383/16/63), fixed media<o:p></o:p> pda: pda1<o:p></o:p></span></strong></p>
</blockquote>
<p style="margin-left: 0.5in;" class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">4. Use <strong>mke2fs /dev/pda1</strong> to create a new ex2 file system on the external drive.<o:p> </o:p></span></p>
<p style="margin-left: 0.5in;" class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">5. Suppose you have Samba installed already, you can add a section in your <strong>/etc/samba/smb.conf</strong> file to enable the share so that Windows machines can see.<o:p></o:p></span></p>
<p style="margin-left: 0.5in;" class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">6. Finally, run <strong>/etc/rc.d/init.d/smb restart</strong> so the new Samba setting can take effect.<o:p></o:p></span></p>
<p><span style="font-size: 10pt; font-family: Verdana;"><o:p></o:p>The speed of the external hard drive is pretty slow (even in EPP mode) compares to the standard we use today. Copying files of mixed sizes resulted in just above 500K per second. But hey, we are talking about a computer that is ten years old here. And for backup usage, the slow speed actually works very well. Because the lower transfer rate at the external hard drive side, there&rsquo;s no noticeable performance degradation on the computer from which the backup operation is initiated. Who cares how long the backup runs since it would be running in the background anyway&hellip;</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kerrywong.com/2007/01/23/samba-file-server-using-a-parallel-external-hard-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
