Hello guys, I am having trouble to get CUPS printer share setup properly via samba. The setup was done following Samba-HOWTO-Collection document, Chapter 7 (CUPS). The problem was when using *cupsaddsmb*, rpcclient can't seem to connect to the server (localhost). The actual output is below : ============================[root@my-server samba]# cupsaddsmb -v -U johnny -a Password for johnny required to access localhost via SAMBA: Running command: smbclient //localhost/print\$ -N -U'johnny%mypassword' -c 'mkdir W32X86;put /var/spool/cups/tmp/3f31f1bab1aa4 W32X86/CanonS750.PPD;put /usr/share/cups/drivers/ADOBEPS5.DLL W32X86/ADOBEPS5.DLL;put /usr/share/cups/drivers/ADOBEPSU.DLL W32X86/ADOBEPSU.DLL;put /usr/share/cups/drivers/ADOBEPSU.HLP W32X86/ADOBEPSU.HLP' added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0 Domain=[HOME] OS=[Unix] Server=[Samba 2.2.8a] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 putting file /var/spool/cups/tmp/3f31f1bab1aa4 as \W32X86/CanonS750.PPD (5855.6 kb/s) (average 5855.8 kb/s) putting file /usr/share/cups/drivers/ADOBEPS5.DLL as \W32X86/ADOBEPS5.DLL (11171.8 kb/s) (average 10801.0 kb/s) putting file /usr/share/cups/drivers/ADOBEPSU.DLL as \W32X86/ADOBEPSU.DLL (10192.2 kb/s) (average 10659.7 kb/s) putting file /usr/share/cups/drivers/ADOBEPSU.HLP as \W32X86/ADOBEPSU.HLP (9008.8 kb/s) (average 10602.8 kb/s) Running command: smbclient //localhost/print\$ -N -U'johnny%mypassword' -c 'mkdir WIN40;put /var/spool/cups/tmp/3f31f1bab1aa4 WIN40/CanonS750.PPD;put /usr/share/cups/drivers/ADFONTS.MFM WIN40/ADFONTS.MFM;put /usr/share/cups/drivers/ADOBEPS4.DRV WIN40/ADOBEPS4.DRV;put /usr/share/cups/drivers/ADOBEPS4.HLP WIN40/ADOBEPS4.HLP;put /usr/share/cups/drivers/DEFPRTR2.PPD WIN40/DEFPRTR2.PPD;put /usr/share/cups/drivers/ICONLIB.DLL WIN40/ICONLIB.DLL;put /usr/share/cups/drivers/PSMON.DLL WIN40/PSMON.DLL;' added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0 Domain=[HOME] OS=[Unix] Server=[Samba 2.2.8a] NT_STATUS_OBJECT_NAME_COLLISION making remote directory \WIN40 putting file /var/spool/cups/tmp/3f31f1bab1aa4 as \WIN40/CanonS750.PPD (5855.6 kb/s) (average 5855.8 kb/s) putting file /usr/share/cups/drivers/ADFONTS.MFM as \WIN40/ADFONTS.MFM (10809.3 kb/s) (average 10539.1 kb/s) putting file /usr/share/cups/drivers/ADOBEPS4.DRV as \WIN40/ADOBEPS4.DRV (10909.2 kb/s) (average 10790.2 kb/s) putting file /usr/share/cups/drivers/ADOBEPS4.HLP as \WIN40/ADOBEPS4.HLP (10658.6 kb/s) (average 10777.6 kb/s) putting file /usr/share/cups/drivers/DEFPRTR2.PPD as \WIN40/DEFPRTR2.PPD (6587.6 kb/s) (average 10733.8 kb/s) putting file /usr/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL (9613.2 kb/s) (average 10667.5 kb/s) putting file /usr/share/cups/drivers/PSMON.DLL as \WIN40/PSMON.DLL (9333.2 kb/s) (average 10629.2 kb/s) Running command: rpcclient localhost -N -U'johnny%mypassword' -c 'adddriver "Windows NT x86" "CanonS750:ADOBEPS5.DLL:CanonS750.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL"' failed session setup Cannot connect to server. Error was NT_STATUS_UNSUCCESSFUL ============================ It looks me the rpcclient cannot connect to the server (localhost), it knows nowhere to send the configurations? *johnny* has been included as a printer admin and is a valid user added using smbpasswd. my smb.conf is below: ============================# Global parameters [global] smb passwd file = /etc/samba/smbpasswd passwd program = /usr/bin/passwd %u pam password change = yes encrypt passwords = yes #socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 max log size = 50 obey pam restrictions = yes passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* security = user unix password sync = yes workgroup = HOME server string = My Server Computer netbios name = my-server log file = /var/log/samba/%m.log printing = cups printcap name = cups printcap = cups load printers = yes hosts allow = 192.168.0. # for Traditional Chinese Users client code page = 950 valid chars = 0xb9 # configure server to be a WINS server wins support = yes name resolve order = wins lmhosts hosts bcast # alert SAMBA to use configured DNS or not dns proxy = no # allow samba server to broadcast via specified interface(s) interfaces = eth1 # configure this machine to be browser server local master = yes domain master = yes preferred master = yes # global share drive settings preserve case = yes # perfomance enhancement settings log level = 1 socket options = TCP_NODELAY IPTOS_LOWDELAY read raw = yes write raw = yes oplocks = yes max xmit = 65535 dead time = 15 getwd cache = yes [printers] comment = All Printers path = /var/spool/samba browseable = no guest ok = yes writable = no printable = yes printer admin = johnny [print$] comment = Printer Drivers path = /etc/samba/drivers guest ok = no browseable = yes read only = yes write list = johnny ============================ I have been struggling setting up my printer using CUPS for some time already. Please help. Thanks alot Johnny
Hi guys, Just a follow-up. The problem is caused by nss_wins. The /var/log/messages shows following messages below when try to authenticate: Aug 18 13:22:47 my-server nss_wins[600]: [2003/08/18 13:22:47, 0] lib/fault.c:fault_report(38) Aug 18 13:22:47 my-server nss_wins[600]: ==============================================================Aug 18 13:22:47 my-server nss_wins[600]: [2003/08/18 13:22:47, 0] lib/fault.c:fault_report(39) Aug 18 13:22:47 my-server nss_wins[600]: INTERNAL ERROR: Signal 11 in pid 600 (2.2.8a) Aug 18 13:22:47 my-server nss_wins[600]: Please read the file BUGS.txt in the distribution Aug 18 13:22:47 my-server nss_wins[600]: [2003/08/18 13:22:47, 0] lib/fault.c:fault_report(41) Aug 18 13:22:47 my-server nss_wins[600]: ==============================================================Aug 18 13:22:47 my-server nss_wins[600]: [2003/08/18 13:22:47, 0] lib/util.c:smb_panic(1094) Aug 18 13:22:47 my-server nss_wins[600]: PANIC: internal error It's on Red Hat 7.3, using Samba 2.2.8a. I am still stuck in this, it looked to be WINS problem but disabling WINS in samba didn't actually help :( Please help. Thanks alot Johnny