[Samba] Cups printing works but status is always Access Denied
Karl Banasky
kbanasky at heatcon.com
Tue Jun 10 20:33:58 GMT 2003
I use Cups here and the install has been with out fail. Some oddities with XP but I figure that is cause I am not forking the doe out, no worries thou, it all works fabulously well. I have Caldera 3.1.1 with CUPS 1.1.19. Also with the smb
My suggestion is to use these settings:
[global]
printer admin = karl
printing = cups
printcap name = lpstat (this is the proper one per some cups document I read)
load printers = yes
[printers]
comment = All Printers
path = /var/spool/samba
guest ok = yes
browseable = no
public = yes
writable = no
printable = yes
printer admin = (user or @group name)
If you would like to add drivers put this in:
[print$]
comment = Printer Drivers
path = /etc/samba.d/drivers (path were driver will be located)
guest ok = no
write list = (user or @group name)
writable = no
browsable = yes
Review this for the right directories to setup and the cool cups utility to add drivers. A little time is required and so smooth when done.
http://us2.samba.org/samba/docs/man/Samba-HOWTO-Collection.html#CUPS
Hope that assists you.
Karl-
>> I have a RedHat 9 installation running XFS.
>> Cups 1.1.17-13 is installed
>> I have compiled and installed Samba 2.2.8a and everything appears to be
>> working apart from a minor printing problem.
>> After I have installed a printer on my Win2K workstation I can print via
>> samba to the cups printer using the windows PCL print driver and it works
>> fine.
>> However the printer status is always 'Access denied, unable to connect'.
>> I get the following entries in the log file for my machine :-
>> [2003/06/10 12:28:24, 0] printing/print_cups.c:cups_printername_ok(388)
>> Unable to get printer status for
>> ::{2227a280-3aea-1069-a2de-08002b30309d} - client-error-not-found
>> [2003/06/10 12:28:24, 0] smbd/service.c:make_connection(252)
>> gb-desktop (192.168.1.250) couldn't find service
>> ::{2227a280-3aea-1069-a2de-08002b30309d}
>> My samba configuration :-
>> [global]
>> workgroup = ASCOT
>> netbios name = DIBBLER
>> server string = SAMBA-LDAP PDC Server
>> encrypt passwords = Yes
>> passwd program = /usr/local/sbin/smbldap-passwd.pl -o %u
>> passwd chat = *new*password* %n\n *new*password* %n\n *successfully*
>> unix password sync = Yes
>> log file = /var/log/samba/%m.log
>> log level = 5 ; remember to lower the log level in real life :-)
>> max log size = 0
>> socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>> domain logons = Yes
>> os level = 80
>> preferred master = False
>> domain master = True
>> dns proxy = No
>> wins support = Yes
>> ; SAMBA-LDAP declarations
>> ldap suffix = dc=ASCOT.WEBSCREEN-TECHNOLOGY,dc=COM
>> ldap admin dn = cn=Manager,dc=ASCOT.WEBSCREEN-TECHNOLOGY,dc=COM
>> ldap port = 389
>> ldap server = 127.0.0.1
>> ldap ssl = No
>> load printers = yes
>> printing = cups
>> printcap name = cups
>> ; Deactivate opportunistic locks (wised)
>> ; opLocks = False
>> ; encoding to french
>> ; character set = iso8859-1
>> ; using smbldap-tools to add machines
>> add user script = /usr/local/sbin/smbldap-useradd.pl -w %u
>> ; users and groups allowed to be 'Domain Admins'
>> domain admin group = " @"Domain Admins" "
>> [homes]
>> comment = Home Directories
>> valid users = %S
>> read only = No
>> create mask = 0664
>> directory mask = 0775
>> browseable = No
>> [netlogon]
>> comment = Network Logon Service
>> path = /usr/local/samba/netlogon
>> guest ok = Yes
>> [profiles]
>> path = /data/profiles
>> writeable = yes
>> browseable = no
>> create mode = 0644
>> directory mode = 0755
>> guest ok = yes
>> [samba]
>> path=/data/samba
>> writable = yes
>> force create mode = 660
>> force directory mode = 770
>> create mode = 660
>> directory mode = 770
>> mangle case = yes
>> case sensitive = no
>> default case = lower
>> preserve case = yes
>> short preserve case = no
>> valid users = @users
>> force group = users
>> [printers]
>> comment = All Printers
>> path = /var/spool/samba
>> printable = Yes
>> browseable = No
>> public = yes
>> guest ok = yes
>> writable = no
>> printer admin = root
>> --
>> Gareth Blades
>> Webscreen Technology
>> Index House
>> St Georges Lane
>> Ascot, Berkshire
>> SL5 7EU, UK
>> Tel +44 (0) 1344 636339
>> http://www.webscreen-technology.com
>> --
>> 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