<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "由Linux透過Samba去掛載Windows Server分享目錄"]]></title>
		<link>https://forum.andowson.com/posts/list/16.page</link>
		<description><![CDATA[Latest messages posted in the topic "由Linux透過Samba去掛載Windows Server分享目錄"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>由Linux透過Samba去掛載Windows Server分享目錄</title>
				<description><![CDATA[ OS環境：Red Hat Linux 7.3 
<br>
1.建立Samba密碼檔(username和password為事先在Windows Server上所建立的帳號及密碼) 
<br>
vi /etc/smbpass 
<br>
username = web 
<br>
password = xxx 
<br>
chmod 600 /etc/smbpass 
<br>
<br>
2.建立mount point 
<br>
mkdir /mnt/data 
<br>
<br>
3.編輯/etc/fstab(假設Windows Server的IP是192.168.1.1) 
<br>
vi /etc/fstab 
<br>
[code=text]//192.168.1.1/web /mnt/web smbfs credentials=/etc/smbpass,uid=web,gid=web 0 0[/code] 
<br>
<br>
4.掛載測試 
<br>
mount /mnt/web 
<br>
可能會遇到類似下面的錯誤訊息，但是還是可以順利掛載成功 
<br>
[quote]12215: session request to 192.168.1.1 failed (Called name not present) 
<br>
12215: session request to 192 failed (Called name not present)[/quote] 
<br>
<br>
5.切換為該掛載使用者 
<br>
su - web 
<br>
<br>
6.產生一個測試檔案 
<br>
cd /mnt/web 
<br>
touch test.txt 
<br>
<br>
7.如果沒問題的話就可以將該檔案刪除 
<br>
rm -rf /mnt/web/test.txt 
<br>
<br>
參考資料： 
<br>
http://myy.helia.fi/~karte/linux_as_a_client_to_windows_smb_shares.html]]></description>
				<guid isPermaLink="true">https://forum.andowson.com/posts/preList/452/921.page</guid>
				<link>https://forum.andowson.com/posts/preList/452/921.page</link>
				<pubDate><![CDATA[Sat, 30 Oct 2010 16:33:47]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>回覆:由Linux透過Samba去掛載Windows Server分享目錄</title>
				<description><![CDATA[ 要解決session request to 192.168.1.1 failed (Called name not present)這樣的錯誤訊息，我試出了一個方法： 
<br>
1.在/etc/hosts中加上Windows Server的IP及主機名稱 
<br>
[code=text]192.168.1.1 WIN2003[/code] 
<br>
2.將/etc/fstab修改如下： 
<br>
[code=text]//WIN2003/web /mnt/web smbfs credentials=/etc/smbpass,uid=web,gid=web 0 0[/code] 
<br>
3.這時再去執行mount /mnt/web，就不會出現上面看到的錯誤訊息了。 
<br>
<br>
參考資料： 
<br>
http://lists.samba.org/archive/samba/2000-December/023160.html]]></description>
				<guid isPermaLink="true">https://forum.andowson.com/posts/preList/452/922.page</guid>
				<link>https://forum.andowson.com/posts/preList/452/922.page</link>
				<pubDate><![CDATA[Sat, 30 Oct 2010 17:14:55]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
	</channel>
</rss>