Hi! I'm using Suse 9.0 with cups 1.1.19 and Samba 3.0. I'm trying to share my printer on the network. Testparm runs without errors and I can see my printer in the network neighborhood. So the smb.conf should be fine. But when I try to install the driver with cupsaddsmb I get the following error. zwobot:/usr/sbin # ./cupsaddsmb -U root -a -v Password for root required to access localhost via SAMBA: Running command: smbclient //localhost/print\$ -N -U'root%root' -c 'mkdir W32X86;put /var/spool/cups/tmp/3fb011ea4aec0 W32X86/stylusphoto750.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' NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86 Running command: rpcclient localhost -N -U'root%root' -c 'adddriver "Windows NT x86" "stylusphoto750:ADOBEPS5.DLL:stylusphoto750.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL"' added interface ip=10.0.0.1 bcast=10.0.0.255 nmask=255.255.255.0 added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0 added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0 Connecting to host=localhost Connecting to 127.0.0.1 at port 445 lsa_io_sec_qos: length c does not match size 8 result was WERR_BAD_PASSWORD I have no clue what this mean and how I can fix it. Can somebody help? This would be great! regards Marco P.S. Here's my smb.conf [global] # Networking configuration options hosts allow = 127.0.0.1 192.168.0.0/24 hosts deny = 0.0.0.0/0 interfaces = eth* lo bind interfaces only = yes # global parameters workgroup = INTRANET server string = WG-Fileserver local master = yes preferred master = yes os level = 65 security = share wins support = no # logging configuration options log level = 3 max log size = 50 debug timestamp = yes Unix extensions = yes map to guest = Bad User load printers = yes printing = cups printcap name = cups socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY veto files = /*.eml/*.nws/riched20.dll/*.{*}/ [marco] comment = Marco's Home Directory path = /home/marco valid users = marco browseable = yes read only = no hide dot files = yes ;veto files = /.*/ create mask = 0640 directory mask = 0750 [public] comment = Publicly Accessible Directory path = /home/public read only = no browsable = yes guest ok = yes guest only = yes create mask = 0777 directory mask = 0777 security mask = 0777 force security mode = 0 directory security mask = 0777 force directory security mode = 0 [printers] comment = All Printers path = /var/tmp browseable = no public = yes guest ok = yes writable = no printable = yes printer admin = root [print$] comment = Printer Drivers path = /var/lib/samba/drivers browseable = yes guest ok = no read only = yes write list = root
> [Samba] problems with cupsaddsmb > > * To: samba at listsdotsambadotorg > * Subject: [Samba] problems with cupsaddsmb > * From: Marco R?ben <roeben at webdotde> > * Date: Wed, 12 Nov 2003 22:15:39 +0100 > > > Hi! > > I'm using Suse 9.0 with cups 1.1.19 and Samba 3.0. I'm trying to share > my printer on the network. Testparm runs without errors and I can see my > printer in the network neighborhood. So the smb.conf should be fine. > > But when I try to install the driver with cupsaddsmb I get the following > error. > > zwobot:/usr/sbin # ./cupsaddsmb -U root -a -v[....]> result was WERR_BAD_PASSWORD > > I have no clue what this mean and how I can fix it. Can somebody help? > This would be great! > > regards > Marco > > P.S. Here's my smb.conf > > [global][....]> security = shareHave you ever tried (like is suggested in the Samba HOWTO and the cupsaddsmb man page) to use security = user ?? Cheers, Kurt
> Message: 41 > Date: Wed, 12 Nov 2003 23:37:31 +0100 > From: Marco R?ben <roeben@web.de> > Subject: Re: [Samba] problems with cupsaddsmb > To: samba@lists.samba.org > > Kurt Pfeifle wrote: > > >>>>> security = share >> >>> >>> Have you ever tried (like is suggested in the Samba HOWTO and the >>> cupsaddsmb man page) to use >>> >>> security = user > > > I had this setting bevore, but never tried to start cupsaddsmb with this > setting. Now ist runs without any error messages. Printer is accessible > under windows. Thanx! > > But, now Samba ask for username and pass when somebody connects to the > server. I don't want this. The public-directory should be accessibly to > all users without username and pass. >Well, how is this then: define a "guest account = nobody" in your smb.conf (make sure there is a Unix user "nobody" on your system, with little rights and no shell access) and use "map to guest = bad user" in smb.conf> Thanx again for the hint! > > regards > Marco >Cheers, Kurt