<?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>cyberz.org &#187; Samba</title>
	<atom:link href="http://www.cyberz.org/blog/tag/samba/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cyberz.org/blog</link>
	<description>Andrea Leofreddi's homepage</description>
	<lastBuildDate>Tue, 10 Aug 2010 17:19:43 +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>Using samba with autofs on Fedora 9</title>
		<link>http://www.cyberz.org/blog/2008/09/07/using-samba-with-autofs-on-fedora-9/</link>
		<comments>http://www.cyberz.org/blog/2008/09/07/using-samba-with-autofs-on-fedora-9/#comments</comments>
		<pubDate>Sun, 07 Sep 2008 14:55:54 +0000</pubDate>
		<dc:creator>andrea</dc:creator>
				<category><![CDATA[All/News]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Samba]]></category>

		<guid isPermaLink="false">http://www.cyberz.org/blog/?p=26</guid>
		<description><![CDATA[Mount a samba share on]]></description>
			<content:encoded><![CDATA[<p>Mount a samba share on the fly without having it mounted statically at boot via the /etc/fstab file can bring you the advantage of an unpainful boot in case of unavailability of the samba server like in the following common scenarios:</p>
<ul>
<li>laptop: you mount your pc share at home, but when you move it becomes unavailable</li>
<li>workstation: you mount the share of your workmate &#8211; but when he/she goes on holiday his/her workstation stays off</li>
</ul>
<p><span id="more-26"></span></p>
<p>Using autofs this can be accomplished easily following these steps:</p>
<ol>
<li>Set <code>/auto</code> under the control of autofs adding this line to <code>/etc/auto.master</code>:<br/><br/><code>/auto            /etc/auto.auto    --timeout=5 --ghost</code><br/><br/></li>
<li>Point <code>directory</code> to a samba share <code>//server/share</code> in <code>/etc/auto.auto</code>:<br/><br/><code>directory              -fstype=cifs,credentials=/etc/smb.auth         ://server/share</code> <i>(directory is a child directory of /auto)</i><br/><br/></li>
<li>Store access credentials to the samba share in <code>/etc/smb.auth</code>:<br/><br/><code>username=yourusername<br />
password=youpassword</code><br/><br/></li>
<li>Secure the password file:<br/><br/><code># chmod 600 /etc/smb.auth</code><br/><br/></li>
<li>Start autofs:<br/><br/><code># /etc/init.d/autofs start<br />
Starting automount:                                        [  OK  ]</code><br/><br/></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.cyberz.org/blog/2008/09/07/using-samba-with-autofs-on-fedora-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
