[Samba] Automatic printers don't quite work...

Richard Chapman rchapman at aardvark.com.au
Sat Dec 22 04:06:24 GMT 2007


I have a new Centos 5.1 system whicn reports samba version  samba 
3.0.25b-1.el5_1.4  - and have just added a physical printer. Linux 
doesn't know the printer (Samsung CLP510) so it is installed as "raw" - 
no driver.
When I use a windows box to browse the network - the printer is visible 
on the C5 server (without me explicitly creating a share)- and I can 
"connect" it - and install the printer on the windows machine (using a 
windows driver which is already on the windows box). The printer then 
shows up on the windows box "Printers and Faxes" screen as "Ready". If I 
get its properties and print a test page - I get the error:
"The page failed to print"
After quite a bit of messing about - I tried explicitly creating a 
printer share in the smb.conf - and this share works fine. I would 
prefer that automatically generated printers work because otherwise the 
windos boxes see the automatically generated printer - and have to be 
told not to try to use it.

Here are the relevant bits of smb.conf:

-------------------
[global]
dns proxy = no
log file = /var/log/samba/%m.log
; netbios name = C5
cups options = raw
; load printers = yes
server string = Centos 5 Linux
; writeable = yes
; write list = richard
workgroup = aardvarkwg
; os level = 20
valid users = richard
; security = user
max log size = 50
username map = /etc/samba/smbusers
; encrypt passwords = yes
; guest ok = no
guest account = richard

# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH

[homes]
comment = Home Directories
browseable = no
writeable = yes

# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /usr/spool/samba
browseable = yes
# Set public = yes to allow user 'guest account' to print
# 21/12/2007 added the below lines:
public = yes
guest ok = yes
writeable = yes
printable = yes
# added 21/12/2007 to get around "access denied" when browsing with windows:
use client driver = yes

#This seems to work:
[CLP510Monochrome]
printer = CLP510
printable = yes
path = /var/spool/samba
use client driver = yes
--------------------
Can anyone suggest why the automatically generated printer isn't working 
properly?

Thanks.
Richard.



More information about the samba mailing list