Bug 9901 - Unable to install CUPS drivers
Unable to install CUPS drivers
Status: NEW
Product: Samba 4.0
Classification: Unclassified
Component: printing
4.0.6
All All
: P5 major
: ---
Assigned To: printing-maintainers
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-22 17:08 UTC by Gerry Reno
Modified: 2013-05-23 15:58 UTC (History)
0 users

See Also:


Attachments
log.samba level 10 (1.84 MB, text/plain)
2013-05-23 15:55 UTC, Gerry Reno
no flags Details
log.smbd level 10 (2.17 MB, text/plain)
2013-05-23 15:57 UTC, Gerry Reno
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerry Reno 2013-05-22 17:08:03 UTC
I'm setting up cups printing with Samba 4.0.6 (4.0.5 exhibits the same behavior)

I downloaded both the windows drivers and the postscript drivers and put them
into /usr/share/cups/drivers/.

I configured cups through the web interface.  Created a printer and printed a
test page.

I edited smb.conf and put in the necessary entries for cups printing:

    [global]
            ...
            load printers = yes
            printing = cups
            printcap name = cups
            ...

    [printers]
            comment = All Printers
            path = /srv/share/spool
            browseable = Yes
            read only = No
            printable = Yes

    [print$]
            comment = Point and Print Printer Drivers
            path = /srv/share/print
            browseable = Yes
            read only = No
            write list = root

Checked the permissions on files and target directories:

    # ls -l /usr/share/cups/drivers/
    total 2348
    -rw-r--r-- 1 root root     803 May 13 12:02 cups6.inf
    -rw-r--r-- 1 root root      72 May 13 12:02 cups6.ini
    -rw-r--r-- 1 root root   12568 May 13 12:02 cupsps6.dll
    -rw-r--r-- 1 root root   13672 May 13 12:02 cupsui6.dll
    -rwxr-xr-x 1 root root  728576 May 13 15:01 ps5ui.dll
    -rwxr-xr-x 1 root root  543232 May 13 15:01 pscript5.dll
    -rwxr-xr-x 1 root root   26038 May 13 15:01 pscript.hlp
    -rwxr-xr-x 1 root root 1060548 May 13 15:01 pscript.ntf
    #
    # ls -l /srv/share/print
    /srv/share/print:
    total 32
    drwxr-xr-x 2 root root 4096 May 12 23:13 COLOR
    drwxr-xr-x 2 root root 4096 May 12 23:13 IA64
    drwxr-xr-x 2 root root 4096 May 12 23:13 W32ALPHA
    drwxr-xr-x 2 root root 4096 May 12 23:13 W32MIPS
    drwxr-xr-x 2 root root 4096 May 12 23:13 W32PPC
    drwxr-xr-x 2 root root 4096 May 12 23:13 W32X86
    drwxr-xr-x 2 root root 4096 May 12 23:13 WIN40
    drwxr-xr-x 2 root root 4096 May 12 23:13 x64


Then ran cupsaddsmb to install the drivers into Samba:

    # PATH=/usr/local/samba/bin:$PATH cupsaddsmb -v -H localhost -U root -a
    Password for root required to access localhost via SAMBA:
    Running command: smbclient //localhost/print$ -N -A /tmp/cupsjExFEC -c
'mkdir W32X86;put /tmp/cupshtyLSS
    W32X86/Cups-PDF.ppd;put /usr/share/cups/drivers/ps5ui.dll
W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp
    W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf
W32X86/pscript.ntf;put
    /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
    Domain=[XXXXXXXXXXX] OS=[Unix] Server=[Samba 4.0.6]
    NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86
    NT_STATUS_ACCESS_DENIED opening remote file \W32X86/Cups-PDF.ppd
    NT_STATUS_ACCESS_DENIED opening remote file \W32X86/ps5ui.dll
    NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript.hlp
    NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript.ntf
    NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript5.dll


And I end up getting access errors.

All the permissions look right.  I can manually create files in the directories
as root.  I made sure that root user was
in smbpasswd
Comment 1 Andreas Schneider 2013-05-23 12:55:51 UTC
Can you please provide a level 10 debug log? See

https://www.samba.org/~asn/reporting_samba_bugs.txt
Comment 2 Gerry Reno 2013-05-23 15:55:54 UTC
Created attachment 8913 [details]
log.samba level 10
Comment 3 Gerry Reno 2013-05-23 15:57:28 UTC
Created attachment 8914 [details]
log.smbd level 10