[Samba] CUPS and Samba 3.0 - printers no show

Ken Sarkies matou at picknowl.com.au
Fri May 16 02:53:46 GMT 2003


Thanks muchly for replying on this question. From a later post I
discovered also this trick mentioned in a website containing a brief
howto.Unfortunately I don't think it is the answer. Once you specify
printing=cups, the print command is ignored, and it should be
appropriate to use printcap=cups (printcap name is an alias for
printcap). I suppose printcap=lpstat should also work. This causes
lpstat -v to be launched to build a list of printers rather than using
the printcap that CUPS provides. Certainly it works OK on my 2.2.8a
installation, but still nothing for samba 3.0.

Has anyone managed to get CUPS+samba 3.0 to work, particularly for
RedHat 8?

BTW I'm sorry to hear someone say that CUPS is too complicated. When I
changed over from lprng (which wasn't working with my HP laserjets),
life was never so easy. I even let the office staff use the webpage to
cancel jobs.

cheers, Ken


On Thu, 2003-05-15 at 21:00, linux power wrote:
> I ment printcap name = lpstat
> and replace P%p with the cups printer URI.
> 
> linux power <linuxpower2002 at yahoo.no> wrote:
> Try this in smb.conf in global section.
> printcap = lpstat
> 
> And in [printer]
> print command = lpr /dev/usb/lp0 %s, rm %s -r
> The cue is to replace %P%p with the URI for the printer found in Cups.
> In this example you see my usb printer.
> Check a smb.conf file for the syntax in the statement
> 
> Ken Sarkies wrote:
> Hi [Samba]s
> 
> I have RedHat 8.0, and have installed a compiled CUPS 1.1.19pre4 and
> Samba 3.0 (latest this week from CVS). It all compiles and installs OK
> with CUPS support in Samba, but no printers show up (according to
> smbclient -L or from windoze) when "printing=cups" is used. It is OK if
> another form of printing is used, for example "printing=sysv". A
> reversion to Samba 2.2.8a however works perfectly with the identical
> setup, including configure options. Installation and use of printers
> goes through OK. I assume others have had success with Samba 3 and CUPS
> as I haven't seen any problem posts so far. My ntadmins group include
> administrator accounts for windoze and also root, all of whom have
> entries in smbpasswd.
> 
> Any ideas or suggestions?
> 
> Many Thanks, Ken
> 
> 
> smb.conf
> 
> # Global Settings
> [global]
> 
> netbios name = HTA41
> workgroup = TRINITY_NT
> server string = Samba Server 3.0 Experimental
> hosts allow = 192.168.1. 127.
> socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
> 
> # PRINTERS
> 
> load printers = yes
> printing = cups
> printcap name = cups
> printer admin = @ntadmins
> 
> # LOGGING
> 
> log file = /var/log/samba/%m.log
> max log size = 0
> 
> # AUTHENTICATION now needs to be done here - setup as BDC
> 
> security = user
> encrypt passwords = yes
> smb passwd file = /etc/samba/smbpasswd
> unix password sync = yes
> passwd program = /usr/bin/passwd %u
> passwd chat = *New*password* %n\n *Retype*new*password* %n\n
> *passwd:*all*authentication*tokens*updated*successfully*
> pam password change = yes
> obey pam restrictions = no
> 
> # BROWSER CONTROL OPTIONS for BDC
> 
> local master = yes
> os level = 20
> domain master = no
> preferred master = no
> domain logons = no
> logon path = \\%L\profiles\profiles\%U
> logon home = \\%L\profiles\%U
> 
> # MISCELLANEOUS
> 
> map to guest = bad user
> 
> # Share Definitions
> 
> [printers]
> comment = All Printers
> path = /var/spool/samba
> writeable = no
> printable = yes
> browseable = no
> 
> [Data]
> comment = Space for Stuff
> path = /misc
> browseable = yes
> writeable = yes
> 
> [homes]
> comment = Home Directories
> browseable = no
> writeable = yes
> valid users = %S
> create mode = 0664
> directory mode = 0775
> 
> [print$]
> comment = Printer Drivers
> path = /etc/samba/drivers
> browseable = yes
> guest ok = yes
> read only = yes
> writelist = @ntadmins
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
> 
> http://home.no.net/~knutove/knut_ove_hauge_kuren.htm
> Ny versjon av Yahoo! Messenger 
> Nye ikoner og bakgrunner, webkamera med superkvalitet og dobbelt så morsom
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
> 
> http://home.no.net/~knutove/knut_ove_hauge_kuren.htm
> Ny versjon av Yahoo! Messenger 
> Nye ikoner og bakgrunner, webkamera med superkvalitet og dobbelt så morsom
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba






More information about the samba mailing list