<?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> &#187; samba</title>
	<atom:link href="http://www.oojahtech.com/tag/samba/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oojahtech.com</link>
	<description></description>
	<lastBuildDate>Thu, 22 Jul 2010 17:16:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Debian SAMBA and Windows 7</title>
		<link>http://www.oojahtech.com/2010/01/29/debian-samba-and-windows-7/</link>
		<comments>http://www.oojahtech.com/2010/01/29/debian-samba-and-windows-7/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 06:21:24 +0000</pubDate>
		<dc:creator>fishbowl</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.oojahtech.com/?p=252</guid>
		<description><![CDATA[I recently hobbled together a computer from old parts i had laying around for a year or more. One of the things I decided to do with this Frankenstein was to use it as a file server. I had also upgraded my Windows partition from XP to Windows 7. The last time I tried SAMBA, [...]]]></description>
			<content:encoded><![CDATA[<p>I recently hobbled together a computer from old parts i had laying around for a year or more. One of the things I decided to do with this Frankenstein was to use it as a file server. I had also upgraded my Windows partition from XP to Windows 7. The last time I tried SAMBA, was many years ago when I was still a green newbie to Linux and do not remember if I ever got it to work then.  This time around things worked smoothly and this is how I did it.</p>
<blockquote><p>sudo aptitude install samba<br />
gpasswd -a user sambashare<br />
smbpasswd -a user<br />
sudo mkdir /home/samba/share<br />
sudo mkdir /home/samba/share/profiles<br />
sudo mkdir /home/samba/share/netlogon<br />
sudo chgrp sambashare /home/samba/<br />
sudo chgrp sambashare /home/samba/share<br />
sudo chgrp sambashare /home/samba/netlogon<br />
sudo chgrp sambashare /home/samba/profiles<br />
sudo chmod 775 /home/samba<br />
sudo chmod 775 /home/samba/share<br />
sudo chmod 775 /home/samba/profiles<br />
sudo chmod 775 /home/samba/netlogon<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.back</p></blockquote>
<p>at the bottom of /samba/smb.conf add (as root):</p>
<blockquote><p>[sambashare]<br />
path = /home/samba/share<br />
valid users = @sambashare<br />
read list = @sambashare<br />
write list = @sambashare<br />
force group = sambashare<br />
read only = No<br />
create mask = 0774<br />
directory mask = 0775</p></blockquote>
<p>then start and stop the samba server:</p>
<blockquote><p>sudo /etc/init.d/samba stop<br />
sudo /etc/init.d/samba start</p></blockquote>
<p>In Windows 7 open Windows Explorer and you should see your linux computers host name. clicking on it will prompt you to give the user name and pasword created above. Now you should have a blank folder called sambashare, try moving things in there. If you see the files show up on your linux box then everything worked.you will also see your user&#8217;s home directory but will not be allowed to write to it.</p>
<p><em><strong>NOTE:</strong> this was done with Debian Squeeze, however the same processes should apply to Debian Lenny.</em></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.oojahtech.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.oojahtech.com/2010/01/29/debian-samba-and-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
