[Samba] Samba4 CUPS: NT_STATUS_ACCESS_DENIED opening remote file

steve steve at steve-ss.com
Mon May 13 13:59:11 MDT 2013


On 13/05/13 21:36, Gerry Reno wrote:
> I'm setting up cups printing with Samba 4.0.5.
>
> 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.5]
>      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.
>
> What I am missing here?
>
>
Hi
I don't think printing works with 4.0.5:
https://bugzilla.samba.org/show_bug.cgi?id=9745
We also get access denied errors when installing the drivers.
Shall we add this tread to the bugzilla?
Cheers,
Steve



More information about the samba mailing list