[Samba] Access Denied to Printers / Same thing here - SOLVED
once (*almost)
Peter Van den Wildenbergh
peter at srecengineering.com
Sun Nov 9 21:40:35 GMT 2008
Peter Van den Wildenbergh wrote:
> Daniel L. Miller wrote:
>> Hi!
>>
>> Trying to trace down a problem with printer sharing. I don't see
>> anything glaringly obvious with my smb.conf. I am using LDAP and CUPS.
>>
>> Using a Windoze client, accessing a printer I receive the friendly
>> "Access denied, unable to connect". Checking the Samba logs, I find:
>>
>> [2008/11/07 18:26:08, 0] param/loadparm.c:process_usershare_file(8268)
>> process_usershare_file: share name
>> ::{2227a280-3aea-1069-a2de-08002b30309d} contains invalid characters
>> (any of %<>*?|/\+=;:",)
>> [2008/11/07 18:26:08, 0] param/loadparm.c:process_usershare_file(8268)
>> process_usershare_file: share name
>> ::{2227a280-3aea-1069-a2de-08002b30309d} contains invalid characters
>> (any of %<>*?|/\+=;:",)
>> [2008/11/07 18:26:08, 0] smbd/service.c:make_connection(1362)
>> daniel (192.168.0.60) couldn't find service
>> ::{2227a280-3aea-1069-a2de-08002b30309d}
>>
>> I don't HAVE any shares with invalid characters - that I'm aware of.
>> Is it possible there's something hiding in a corrupted tdb file?
>> I've tried deleting ntprinters.tdb without improvement.
>
>
> Hi Daniel,
>
> I can only offer moral support, I got the same problem but no solution
> (yet).
> Samba 3.0.28a on Ubuntu 8.04 LTS with OpenLDAP slapd 2.4.9
>
> I read through this :
> http://us6.samba.org/samba/docs/man/Samba-HOWTO-Collection/classicalprinting.html#id2620623
>
>
> But no luck and I want to avoid the whole rpcclient thing.
>
> somebody here
> (http://lists.samba.org/archive/samba/2006-January/116695.html)
> pointed to
> http://www.extremetech.com/article2/0,1697,1722545,00.asp
> Not sure what it has to do with it but I tried deleting the task thing
> (no change)
> (It explained where the 2227a280-3aea-1069-a2de-08002b30309d key comes
> from)
>
> Parts of my smb.conf:
>
> [global]
> load printers = yes
> printcap name = cups
> printing = cups
>
>
> [print$]
> comment = Printer Drivers
> path = /var/lib/samba/printers
> browseable = yes
> read only = yes
> guest ok = no
> write list = root, @"Domain Admins", @"Domain Users"[print$]
> comment = Printer Drivers
> path = /var/lib/samba/printers
> browseable = yes
> read only = yes
> guest ok = no
> write list = root, @"Domain Admins", @"Domain Users"
> # Remove @"Domain Users" asap !!! Need printer setup working for Big
> Xerox 7328 MFC
>
>
> drwxrwxrwx 2 root Domain Admins 4096 2008-11-09 10:48 printers
> (I will chmod this back to 775 ASAP)
>
> The printer works in CUPS
>
> root = part of "Domain Admins"
> User "root" already member of the group "Domain Admins".
>
> What else did I do ?
>
> Read
> man 8 cupsaddsmb
>
> Step 6 here fails:
> http://de.samba.org/samba/docs/man/Samba-Guide/happy.html#id2575750
>
> rebooted everything one more time, to give it another try...
>
> Posted this 'cry for help' msg...
>
> Do I need cupsaddsmb?
> I do NOT use RAW printing.
>
>
> Thanks
>
>
> Peter
>
>
>
>
>
>
Alrighty then... I think I got it... almost (*)
changed in smb.conf section : [print$]
path = /usr/share/cups/drivers
# path = /var/lib/samba/printers
Just before this change I did this :
root at SERVER:/usr/share/cups/drivers# mkdir w32x86/3 -p
Not sure if it is needed to make those 2 sub-directories but it
certainly doesn't hurt
after going through the add printer procedure 5.17
http://de.samba.org/samba/docs/man/Samba-Guide/happy.html#id2575750
I do an ls -l ... MAGIC
root at SRV-00002:/usr/share/cups/drivers/w32x86/3# ls -l
total 18720
-rwxr--r-- 1 root root 728576 2007-05-22 05:29 PS5UI.DLL
-rwxr--r-- 1 root root 543232 2007-05-22 05:29 PSCRIPT5.DLL
-rwxr--r-- 1 root root 26038 2007-05-10 04:31 PSCRIPT.HLP
-rwxr--r-- 1 root root 1060548 2007-05-10 04:31 pscript.ntf
-rwxr--r-- 1 root root 5561 2007-05-10 04:31 PS_SCHM.GDL
-rwxr--r-- 1 root root 742912 2008-03-06 13:25 x2comsB3.dll
-rwxr--r-- 1 root root 4605440 2008-03-06 13:25 x2coreB3.dll
-rwxr--r-- 1 root root 256000 2008-03-06 13:24 x2fpb02.exe
-rwxr--r-- 1 root root 31744 2008-03-06 13:15 x2fpd02.dll
-rwxr--r-- 1 root root 190753 2007-03-06 11:48 x2gp01p.chm
...
I kind'a understand what is going on but not completely...
Let me tell you does guys from the SaMBa team are geniuses... !
(Reverse engineering the winBlows crap and have it work with LDAP, CUPS
& Co... JUST AWESOME !!!
No the (*) almost part.
When right-clicking on the printer and selecting properties I get an
error window titled : "Xerox Printer Driver"
An unexpected error occurred in the print driver. Close the current
driver window and retry the operation."
<OK>
Clicking Ok gives me the properties, however those are in read-only mode.
Somebody help us here?
Regards
Peter
More information about the samba
mailing list