會員註冊 / 登入  |  電腦版  |  Jump to bottom of page

Linux/Unix » 解決Samba Server Unable to connect to CUPS server localhost:631 - 連線被拒絕問題

發表人: andowson, 七段學員
2009-04-08 11:44:00
公司採用Samba Server來進行檔案分享,平常大家也都靠它來作交工作報告前的彙整,因為走網路芳鄰方式來開同一個檔案,一次只能有一個人寫入,其他人可以用唯讀方式來開啟,滿適合一個小組的所有人一起編輯一個共同的檔案。平常大家都用得很快樂,直到今天早上當機了,上去看/var/log/messages檔,發現Samba Server(smbd)一每隔一小段時間就不斷寫出下列的錯誤訊息:
Apr 8 11:25:21 localhost smbd[3032]: [2009/04/08 11:25:21, 0] printing/print_cups.c:cups_connect(69)
Apr 8 11:25:21 localhost smbd[3032]: Unable to connect to CUPS server localhost:631 - 連線被拒絕
Apr 8 11:25:21 localhost smbd[3032]: [2009/04/08 11:25:21, 0] printing/print_cups.c:cups_connect(69)
Apr 8 11:25:21 localhost smbd[3032]: Unable to connect to CUPS server localhost:631 - 連線被拒絕

這部Samba Server並沒有接印表機,因此我們需要把設定檔/etc/samba/smb.conf調整一下,讓它不要載入printer的設定,將預設值前面加上分號,然後補上一行新的設定值,修改如下:

; load printers = yes
load printers = no
; printing = cups
printing = bsd


重新啟動Samba
service smb restart

再觀察/var/log/messages就沒有這個錯誤訊息了

參考資料:
http://klesmis.blogspot.com/2008/09/samba.html




會員註冊 / 登入  |  電腦版  |  Jump to top of page