<?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>EvoTalk &#187; samba</title>
	<atom:link href="http://evotalk.net/blog/tag/samba/feed" rel="self" type="application/rss+xml" />
	<link>http://evotalk.net/blog</link>
	<description></description>
	<lastBuildDate>Mon, 07 Jun 2010 03:01:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fedora8 Samba Setup</title>
		<link>http://evotalk.net/blog/2008/01/fedora8-samba-setup.html</link>
		<comments>http://evotalk.net/blog/2008/01/fedora8-samba-setup.html#comments</comments>
		<pubDate>Tue, 08 Jan 2008 09:17:09 +0000</pubDate>
		<dc:creator>asd</dc:creator>
				<category><![CDATA[Code Snippet]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[程式設計]]></category>
		<category><![CDATA[samba]]></category>

		<guid isPermaLink="false">http://evotalk.net/blog/?p=407</guid>
		<description><![CDATA[1. 編輯 /etc/samba/smb.conf，加入
view plain

CODE:




&#91;myshare&#93;


comment = my share folder


path = /home/gary/share


valid users = gary


public = no


writable = yes


printable = no


create mask = 0765 







加入samba user gary
smbpasswd -a gary
smbpasswd -e gary

啟動 samba daemon
/etc/init.d/smb restart

測試
mount -t cifs //localhost/myshare /mnt/share -o username=gary
此時會發生錯誤訊息
mount error 6 = No such device or address

modify the mode SELinux
解決上述錯誤，可下命令 「setenforce 0」或是編輯「/etc/selinux/config」
let SELINUX=enforcing to SELINUX=disabled

]]></description>
			<content:encoded><![CDATA[<p>1. 編輯 /etc/samba/smb.conf，加入</p>
<div class="igBar"><span id="lcode-2"><a href="#" onclick="javascript:showCodeTxt('code-2'); return false;">view plain</a></span></div>
<div class="shadow">
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-2">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>myshare<span style="color:#006600; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">comment = my share folder</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">path = /home/gary/share</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">valid users = gary</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">public = no</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">writable = yes</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">printable = no</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">create mask = <span style="color:#800000;color:#800000;">0765</span> </div>
</li>
</ol>
</div>
</div>
</div>
</div>
<p></p>
<li>加入samba user gary<br />
<blockquote><p>smbpasswd -a gary<br />
smbpasswd -e gary</p></blockquote>
</li>
<li>啟動 samba daemon<br />
<blockquote><p>/etc/init.d/smb restart</p></blockquote>
</li>
<li>測試<br />
<blockquote><p>mount -t cifs //localhost/myshare /mnt/share -o username=gary<br />
此時會發生錯誤訊息<br />
mount error 6 = No such device or address</p></blockquote>
</li>
<li>modify the mode SELinux<br />
解決上述錯誤，可下命令 「setenforce 0」或是編輯「/etc/selinux/config」</p>
<blockquote><p>let SELINUX=enforcing to SELINUX=disabled</p></blockquote>
</li>
]]></content:encoded>
			<wfw:commentRss>http://evotalk.net/blog/2008/01/fedora8-samba-setup.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora Mount Samba Folder</title>
		<link>http://evotalk.net/blog/2007/10/fedora-mount-samba-folder.html</link>
		<comments>http://evotalk.net/blog/2007/10/fedora-mount-samba-folder.html#comments</comments>
		<pubDate>Fri, 12 Oct 2007 08:07:53 +0000</pubDate>
		<dc:creator>asd</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[程式設計]]></category>
		<category><![CDATA[samba]]></category>

		<guid isPermaLink="false">http://evotalk.net/blog/?p=390</guid>
		<description><![CDATA[記得以前是用
mount -t smbfs //xxx.xxx.xxx.xxx/folder /mnt/folder -o username=xxxx
現在改成
mount -t cifs //xxx.xxx.xxx.xxx/folder /mnt/folder -o username=xxx
欲查詢某ip所分享的資料夾
smbclient -L xxx.xxx.xxx.xxx
]]></description>
			<content:encoded><![CDATA[<p>記得以前是用</p>
<blockquote><p>mount -t smbfs //xxx.xxx.xxx.xxx/folder /mnt/folder -o username=xxxx</p></blockquote>
<p>現在改成</p>
<blockquote><p>mount -t cifs //xxx.xxx.xxx.xxx/folder /mnt/folder -o username=xxx</p></blockquote>
<p>欲查詢某ip所分享的資料夾</p>
<blockquote><p>smbclient -L xxx.xxx.xxx.xxx</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://evotalk.net/blog/2007/10/fedora-mount-samba-folder.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use Samba</title>
		<link>http://evotalk.net/blog/2007/03/use-samba.html</link>
		<comments>http://evotalk.net/blog/2007/03/use-samba.html#comments</comments>
		<pubDate>Thu, 29 Mar 2007 11:34:25 +0000</pubDate>
		<dc:creator>asd</dc:creator>
				<category><![CDATA[科技新知]]></category>
		<category><![CDATA[軟體使用]]></category>
		<category><![CDATA[samba]]></category>

		<guid isPermaLink="false">http://evotalk.net/blog/?p=339</guid>
		<description><![CDATA[目標
建立三個目錄 \Members、\Speech 及 \Image ，所有的 user 分為兩組，一組為 speech ，一組為 image，在 \Members 下各有其家目錄，每個人的目錄皆可被瀏覽，但只有屬於自已的目錄才可寫入。另一個限制：所有屬於 speech group 的 user 可以到 \Speech目錄下讀寫，但是 \Image 目錄唯讀；同樣的，所有屬於 image group 的 user 可以到 \Image 目錄下讀寫，但是 \Speech 目錄唯讀。其中有一個 user 既屬於 speech 也屬於 image group。
]]></description>
			<content:encoded><![CDATA[<h5>目標</h5>
<p>建立三個目錄 \Members、\Speech 及 \Image ，所有的 user 分為兩組，一組為 speech ，一組為 image，在 \Members 下各有其家目錄，每個人的目錄皆可被瀏覽，但只有屬於自已的目錄才可寫入。另一個限制：所有屬於 speech group 的 user 可以到 \Speech目錄下讀寫，但是 \Image 目錄唯讀；同樣的，所有屬於 image group 的 user 可以到 \Image 目錄下讀寫，但是 \Speech 目錄唯讀。其中有一個 user 既屬於 speech 也屬於 image group。</p>
]]></content:encoded>
			<wfw:commentRss>http://evotalk.net/blog/2007/03/use-samba.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
