<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "解決Samba Server Unable to connect to CUPS server localhost:631 - 連線被拒絕問題"]]></title>
		<link>https://forum.andowson.com/posts/list/16.page</link>
		<description><![CDATA[Latest messages posted in the topic "解決Samba Server Unable to connect to CUPS server localhost:631 - 連線被拒絕問題"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>解決Samba Server Unable to connect to CUPS server localhost:631 - 連線被拒絕問題</title>
				<description><![CDATA[ 公司採用Samba Server來進行檔案分享，平常大家也都靠它來作交工作報告前的彙整，因為走網路芳鄰方式來開同一個檔案，一次只能有一個人寫入，其他人可以用唯讀方式來開啟，滿適合一個小組的所有人一起編輯一個共同的檔案。平常大家都用得很快樂，直到今天早上當機了，上去看/var/log/messages檔，發現Samba Server(smbd)一每隔一小段時間就不斷寫出下列的錯誤訊息： 
<br>
Apr 8 11:25:21 localhost smbd[3032]: [2009/04/08 11:25:21, 0] printing/print_cups.c:cups_connect(69) 
<br>
Apr 8 11:25:21 localhost smbd[3032]: Unable to connect to CUPS server localhost:631 - 連線被拒絕 
<br>
Apr 8 11:25:21 localhost smbd[3032]: [2009/04/08 11:25:21, 0] printing/print_cups.c:cups_connect(69) 
<br>
Apr 8 11:25:21 localhost smbd[3032]: Unable to connect to CUPS server localhost:631 - 連線被拒絕 
<br>
<br>
這部Samba Server並沒有接印表機，因此我們需要把設定檔/etc/samba/smb.conf調整一下，讓它不要載入printer的設定，將預設值前面加上分號，然後補上一行新的設定值，修改如下： 
<br>
[code] 
<br>
; load printers = yes 
<br>
load printers = no 
<br>
; printing = cups 
<br>
printing = bsd[/code] 
<br>
<br>
重新啟動Samba 
<br>
service smb restart 
<br>
<br>
再觀察/var/log/messages就沒有這個錯誤訊息了 
<br>
<br>
參考資料： 
<br>
http://klesmis.blogspot.com/2008/09/samba.html]]></description>
				<guid isPermaLink="true">https://forum.andowson.com/posts/preList/312/585.page</guid>
				<link>https://forum.andowson.com/posts/preList/312/585.page</link>
				<pubDate><![CDATA[Wed, 8 Apr 2009 11:44:00]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
	</channel>
</rss>