Samba 錯誤訊息的解析,若沒有常翻文件,老實說根本不太清


Linux OS : CentOS 5.4 x64
Samba  : samba-3.0.33-3.15.el5_4.1

Error Messages :

Feb 1 10:38:20 linux-Ser smbd[8830]: Unable to connect to CUPS server localhost:631 - Connection refused
Feb 1 10:39:18 linux-Ser smbd[8879]: [2010/02/01 10:39:18, 0] printing/print_cups.c:cups_connect(69)


* 修改 smb.conf ,新增 Global 設定。


vi /etc/samba/smb.conf
 load printers = no
 printing = bsd
 printcap name = /dev/null
 disable spoolss = yes

Samba 官方說明:

When would you set the global parameter disable spoolss?

Setting this parameter to Yes disables Samba's support for the SPOOLSS set of MS-RPCs and yields behavior identical to Samba 2.0.x. Windows NT/2000 clients can downgrade to using LanMan style printing commands. Windows 9x/Me are unaffected by the parameter. However, this disables the ability to upload printer drivers to a Samba server via the Windows NT/200x Add Printer Wizard or by using the NT printer properties dialog window. It also disables the capability of Windows NT/200x clients to download print drivers from the Samba host on demand. Be extremely careful about setting this parameter.

The alternate parameter use client driver applies only to Windows NT/200x clients. It has no effect on Windows 95/98/Me clients. When serving a printer to Windows NT/200x clients without first installing a valid printer driver on the Samba host, the client is required to install a local printer driver. From this point on, the client treats the printer as a local printer and not a network printer connection. This is much the same behavior that occurs when disable spoolss = yes.

Under normal circumstances, the NT/200x client attempts to open the network printer using MS-RPC. Because the client considers the printer to be local, it attempts to issue the OpenPrinterEx() call requesting access rights associated with the logged on user. If the user possesses local administrator rights but not root privilege on the Samba host (often the case), the OpenPrinterEx() call fails. The result is that the client now displays an “Access Denied; Unable to connect” message in the printer queue window (even though jobs may be printed successfully). This parameter MUST not be enabled on a print share that has a valid print driver installed on the Samba server


呼,話說 Samba 的 Log 真的很難看懂啊! = ="...

創作者 paul 的頭像

Paul's Blog

paul 發表在 痞客邦 留言(0) 人氣()