<?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>Tim Malone.id.au &#187; Linux</title>
	<atom:link href="http://www.timmalone.id.au/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.timmalone.id.au</link>
	<description>Tim&#039;s thoughts, words, findings, musings, and rants</description>
	<lastBuildDate>Tue, 27 Jul 2010 10:17:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Linux beginners guide to getting Samba up and running</title>
		<link>http://www.timmalone.id.au/2006/03/07/linux-beginners-guide-to-getting-samba-up-and-running/</link>
		<comments>http://www.timmalone.id.au/2006/03/07/linux-beginners-guide-to-getting-samba-up-and-running/#comments</comments>
		<pubDate>Tue, 07 Mar 2006 07:09:05 +0000</pubDate>
		<dc:creator>Tim Malone</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.timmalone.id.au/thinkstack/index.php/archives/2006/03/07/linux-beginners-guide-to-getting-samba-up-and-running/</guid>
		<description><![CDATA[<p>I&#8217;m a Linux beginner. Every day I&#8217;m learning more at work and at home with my big fat Linux book, and it&#8217;s alot of fun. I can&#8217;t wait for the day when I can format my computers, stick a distro of Linux on, and never have to touch Windows again. <img src='http://www.timmalone.id.au/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>I set up a dev server at work recently, partly because it was annoying for us to have to FTP code changes up before being able to test them. The idea was to set up a server in the office, mimicing our standard server setup, and set up Samba for quick and easy editing. I was reading off the Samba documentation &#8211; which is quite thorough &#8211; but either I missed something, or they didn&#8217;t bother including something because they figured users would be more proficient at Linux.</p>
<p>So, that&#8217;s what this post is for. Those people who want to set up Samba, yet don&#8217;t have a clue how to.</p>
<p>So, my quick guide to getting Samba up and running.</p>
<p>First up, install it if it&#8217;s not installed already. If you&#8217;re runing Red Hat/Centos/etc., use:</p>
<p><tt>yum install samba</tt></p>
<p>On Debian distros, I&#8217;m pretty sure the alternative for <tt>yum</tt> is <tt>apt-get</tt> &#8211; but I haven&#8217;t touched Debian yet.</p>
<p>Now, for a really basic way to share files with a Windows user, you&#8217;ll first want to add the user to the Linux system (now that I think about it, it makes sense, but this was the part that took me ages to realise I had to do).</p>
<p><tt>useradd -d / -n tim</tt></p>
<p>Where <tt>/</tt> is the user&#8217;s home directory &#8211; <tt>/</tt> effectively giving them access to the entire system &#8211; and where <tt>tim</tt> is the username. If you&#8217;ll be connecting from the same Windows user all the time, use the same username &#8211; that way you won&#8217;t need to authenticate again to access the share.</p>
<p>Set the user&#8217;s password (again, same as your Windows password if you&#8217;re using the same user all the time):</p>
<p><tt>passwd tim</tt></p>
<p>Now, add the user to Samba:</p>
<p><tt>smbpasswd -a tim</tt></p>
<p>And that&#8217;s it. How unbelievably easy.</p>
<p>Now, I haven&#8217;t yet got into real advanced usage of Samba, but I intend to create a domain controller out of it once I&#8217;m able to. If you want to play around, take a look in <tt>/etc/samba/smb.conf</tt>, or easier still, download <a href="http://www.webmin.com/download.html">Webmin</a> to do it all from a graphical interface.</p>
]]></description>
		<wfw:commentRss>http://www.timmalone.id.au/2006/03/07/linux-beginners-guide-to-getting-samba-up-and-running/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
