<?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>Ali Aboosaidi &#187; samba</title>
	<atom:link href="http://insanelabs.com/tag/samba/feed/" rel="self" type="application/rss+xml" />
	<link>http://insanelabs.com</link>
	<description>Umm... Unorthodox?</description>
	<lastBuildDate>Tue, 08 Nov 2011 21:04:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Linux: Mount remote Windows shares with smbfs</title>
		<link>http://insanelabs.com/linux/linux-mount-remote-windows-shares-with-smbfs/</link>
		<comments>http://insanelabs.com/linux/linux-mount-remote-windows-shares-with-smbfs/#comments</comments>
		<pubDate>Wed, 31 Dec 2008 16:43:05 +0000</pubDate>
		<dc:creator>Ali</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[samba]]></category>

		<guid isPermaLink="false">http://insanelabs.com/?p=180</guid>
		<description><![CDATA[It&#8217;s actually quite easy! In Debian you will have to install smbfs. Some distros install this package by default. First create a mount point to which we will refer to as /mountpoint from this point forward. mkdir /mnt/mountpoint To mount: mount -t smbfs -o username=&#60;username&#62;,password=&#60;password&#62;,workgroup=&#60;workgroup/domain&#62; //servername/share /mountpoint If you don&#8217;t want to type your password [...]
Related posts:<ol>
<li><a href="http://insanelabs.com/linux/linux-a-simple-and-quick-way-of-sharing-a-folder-with-windows-systems-using-samba/" rel='bookmark' title='Linux: A simple and quick way of sharing a folder with Windows systems using Samba' class="liinternal">Linux: A simple and quick way of sharing a folder with Windows systems using Samba</a></li>
<li><a href="http://insanelabs.com/linux/linux-vsftpd-and-symbolic-links/" rel='bookmark' title='Linux: vsftpd and symbolic links' class="liinternal">Linux: vsftpd and symbolic links</a></li>
<li><a href="http://insanelabs.com/linux/linux-convert-bin-cue-images-to-iso/" rel='bookmark' title='Linux: Convert .bin/.cue images to .iso' class="liinternal">Linux: Convert .bin/.cue images to .iso</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s actually quite easy!</p>
<p>In Debian you will have to install smbfs. Some distros install this package by default. First create a mount point to which we will refer to as /mountpoint from this point forward.</p>
<pre>mkdir /mnt/mountpoint</pre>
<p>To mount:</p>
<pre>mount -t smbfs -o username=&lt;username&gt;,password=&lt;password&gt;,workgroup=&lt;workgroup/domain&gt; //servername/share /mountpoint</pre>
<p>If you don&#8217;t want to type your password in the comman then don&#8217;t. Remove password=&lt;password&gt; and you will be asked to enter it once you hit enter. To use local credentials use the server name in &lt;workgroup/domain&gt; and to use domain credentials use the domain name. Username must match the domain or server you are authenticating against.</p>
<p>You can also mount admin shares. Instead of //servername/share use //servername/&lt;driveletter&gt;$</p>
<p>You can ultimately auto mount remote shares during boot by adding those lines to your fstab, but if your Linux box is not a member of the domain and can&#8217;t authenticate mount process will fail unless you have smbfs authenticate automatically. This is not the safest way of auto mounting shares in Linux as you are going to store your password in a text file. As precaution you can make the file accessible to root only.</p>
<p>To do so, add this line to your fstab:</p>
<pre>//servername/sharename /mountpoint smbfs auto,credentials=/root/.passfile,uid=1000,umask=000,user 0 0</pre>
<p>/root/.passfile is where you will store your network passwords. Create it and add the credentials:</p>
<pre>nano /root/.passfile</pre>
<p>Then add the following lines:</p>
<pre>username=&lt;username&gt;
password=&lt;password&gt;</pre>
<p>To make the file readable by root only:</p>
<pre>chmod 600 /root/.passfile</pre>
<p>Once you&#8217;re done with all this, go ahead and mount the shares:</p>
<pre>mount -a</pre>
<p>Remote share will be mounted automatically after every reboot.</p>
<p>Related posts:<ol>
<li><a href="http://insanelabs.com/linux/linux-a-simple-and-quick-way-of-sharing-a-folder-with-windows-systems-using-samba/" rel='bookmark' title='Linux: A simple and quick way of sharing a folder with Windows systems using Samba' class="liinternal">Linux: A simple and quick way of sharing a folder with Windows systems using Samba</a></li>
<li><a href="http://insanelabs.com/linux/linux-vsftpd-and-symbolic-links/" rel='bookmark' title='Linux: vsftpd and symbolic links' class="liinternal">Linux: vsftpd and symbolic links</a></li>
<li><a href="http://insanelabs.com/linux/linux-convert-bin-cue-images-to-iso/" rel='bookmark' title='Linux: Convert .bin/.cue images to .iso' class="liinternal">Linux: Convert .bin/.cue images to .iso</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://insanelabs.com/linux/linux-mount-remote-windows-shares-with-smbfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: A simple and quick way of sharing a folder with Windows systems using Samba</title>
		<link>http://insanelabs.com/linux/linux-a-simple-and-quick-way-of-sharing-a-folder-with-windows-systems-using-samba/</link>
		<comments>http://insanelabs.com/linux/linux-a-simple-and-quick-way-of-sharing-a-folder-with-windows-systems-using-samba/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 06:56:02 +0000</pubDate>
		<dc:creator>Ali</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[smb]]></category>

		<guid isPermaLink="false">http://insanelabs.com/?p=205</guid>
		<description><![CDATA[Here is the quickest way to share a folder with read/write access. Get rid of all lines in your /etc/samba/smb.conf and replace them with: [global] workgroup = workgroup or domain server string = %h server security = user obey pam restrictions = Yes passdb backend = tdbsam passwd program = /usr/bin/passwd %u passwd chat = [...]
Related posts:<ol>
<li><a href="http://insanelabs.com/linux/linux-mount-remote-windows-shares-with-smbfs/" rel='bookmark' title='Linux: Mount remote Windows shares with smbfs' class="liinternal">Linux: Mount remote Windows shares with smbfs</a></li>
<li><a href="http://insanelabs.com/linux/linux-user-management/" rel='bookmark' title='Linux: User management' class="liinternal">Linux: User management</a></li>
<li><a href="http://insanelabs.com/linux/linux-htaccess-and-htpasswd-files/" rel='bookmark' title='Linux: .htaccess and .htpasswd files' class="liinternal">Linux: .htaccess and .htpasswd files</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Here is the quickest way to share a folder with read/write access.</p>
<p>Get rid of all lines in your /etc/samba/smb.conf and replace them with:</p>
<pre>[global]
workgroup = workgroup or domain
server string = %h server
security = user
obey pam restrictions = Yes
passdb backend = tdbsam
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
panic action = /usr/share/samba/panic-action %d
encrypt passwords = yes
invalid users = root

[Share name]
path = /home/share/
comment = comment
public = yes
browseable = yes
writeable = yes
valid users = user who will access the share
create mask = 0755</pre>
<p>Restart your samba server:</p>
<pre>/etc/init.d/samba restart</pre>
<p>You must have an smb account for specified user. To create one:</p>
<pre>smbuser &lt;username&gt;
smbpasswd &lt;username&gt;</pre>
<p>Enter password for user.</p>
<p>Related posts:<ol>
<li><a href="http://insanelabs.com/linux/linux-mount-remote-windows-shares-with-smbfs/" rel='bookmark' title='Linux: Mount remote Windows shares with smbfs' class="liinternal">Linux: Mount remote Windows shares with smbfs</a></li>
<li><a href="http://insanelabs.com/linux/linux-user-management/" rel='bookmark' title='Linux: User management' class="liinternal">Linux: User management</a></li>
<li><a href="http://insanelabs.com/linux/linux-htaccess-and-htpasswd-files/" rel='bookmark' title='Linux: .htaccess and .htpasswd files' class="liinternal">Linux: .htaccess and .htpasswd files</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://insanelabs.com/linux/linux-a-simple-and-quick-way-of-sharing-a-folder-with-windows-systems-using-samba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

