[Samba] CUPS and Samba 3.0 - printers no show

linux power linuxpower2002 at yahoo.no
Thu May 15 10:46:12 GMT 2003


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 <matou at picknowl.com.au> 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


More information about the samba mailing list