Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: [Samba] Procedure for installing Windows drivers on Samba with CUPS

2 views
Skip to first unread message

Tim Vangehugten

unread,
May 17, 2013, 9:01:09 AM5/17/13
to
@Gerry, which version are you using?
Does printing works in 4.0.4?


2013/5/16 Gerry Reno <gr...@verizon.net>

> On 05/16/2013 10:46 AM, steve wrote:
> > On Thu, 2013-05-16 at 15:22 +0200, Tim Vangehugten wrote:
> >> if
> >> only the printing in samba 4.0.5 would work that would be nice...
> > Hi
> > The printing doesn't work in 4.0.5
> > https://bugzilla.samba.org/show_bug.cgi?id=9745
> >
> > maybe you could add this thread/your use case to the bugzilla?
> > Cheers,
> > Steve
> >
>
> 4.0.5 is useless without printing.
>
> I've backed out of 4.0.5.
>
>
> .
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
>
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba

Tim Vangehugten

unread,
May 22, 2013, 7:41:01 AM5/22/13
to
Hi,

Just an update:

Tried today samba 4.0.6, printing works there with the automatic driver
install.

Best regards
Tim Vangehugten


2013/5/17 Tim Vangehugten <timvang...@gmail.com>

Gerry Reno

unread,
May 22, 2013, 12:08:54 PM5/22/13
to
On 05/22/2013 07:41 AM, Tim Vangehugten wrote:
> Hi,
>
> Just an update:
>
> Tried today samba 4.0.6, printing works there with the automatic driver install.
>
> Best regards
> Tim Vangehugten
>
>

I tried again after pulling 4.0.6 and it still does not install the cups drivers:

# 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/cupsqd8nsE -c 'mkdir W32X86;put /tmp/cups8yiElz
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=[XXXXXXXXXX] 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

Gerry Reno

unread,
May 22, 2013, 1:11:46 PM5/22/13
to

> I tried again after pulling 4.0.6 and it still does not install the cups drivers:
>
> # 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/cupsqd8nsE -c 'mkdir W32X86;put /tmp/cups8yiElz
> 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=[XXXXXXXXXX] 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
>

I opened a new bug on this issue because it may not be the same as the Win7 printing issue bug:

https://bugzilla.samba.org/show_bug.cgi?id=9901

steve

unread,
May 22, 2013, 5:32:29 PM5/22/13
to
On Wed, 2013-05-22 at 13:41 +0200, Tim Vangehugten wrote:
> Hi,
>
> Just an update:
>
> Tried today samba 4.0.6, printing works there with the automatic driver
> install.
>
> Best regards
> Tim Vangehugten

Hi
Are you sure? Its as you were here. No change. After the drivers are
seemingly copied correctly to the print$ share, windows gives up and
issues a 'Access is denied' error, as before.

The last time it worked following the instructions which are now on the
wiki was in 4.0.0

https://wiki.samba.org/index.php/Setup_a_printer_share
Are those instructions still valid?

Ricky Nance

unread,
May 22, 2013, 10:15:23 PM5/22/13
to
Those instructions should still work for XP, but its quite a bit different
for windows 7, I need to do a wiki page on it, and will when I get some
spare time, but not sure when that will be.

Ricky

steve

unread,
May 23, 2013, 2:27:19 AM5/23/13
to
On Wed, 2013-05-22 at 21:15 -0500, Ricky Nance wrote:
> Those instructions should still work for XP, but its quite a bit
> different for windows 7, I need to do a wiki page on it, and will when
> I get some spare time, but not sure when that will be.

Thanks Ricky
I just tried it with a xp client. The same error: Access is denied. Is
there anything trivial missing from those wiki notes which prevent
printing working with 4.0.6?
Steve

Tim Vangehugten

unread,
May 23, 2013, 4:19:32 AM5/23/13
to
@steve yes I am sure as I am able to print now in my test-network :)

These are the steps I have done on a freshly installed ubuntu 12.04 server:

1: Downloaded and extracted samba-4.0.6.tar.gz
2: Patched dns_crypto.c in /source4/dns_server/
with 0001-Fix-internal-DNS-dyn.-update-seen-as-TSIG-error-with.patch
3: Did provision with samba internal dns backend and downloaded an
initscript
4: Did a "krb5_newrealm SAMBA.MY.DOMAIN"
5: mkdir /var/spool/samba and /usr/local/samba/var/print
6: chmod 1777 /var/spool/samba and /usr/local/samba/var/print
7: added the following to my smb.conf in /usr/local/samba/etc/smb.conf:

[global]
...
printcap name = cups
printing = cups

[print$]
comment = Printer Drivers
path = /usr/local/samba/var/print
read only = no

[printers]
comment = All Printers
browseable = yes
printable = yes
read only = no
path = /var/spool/samba

8: installed and configured cups
9: started samba
10: added the windows drivers to the samba share like Adam Nielsen said
11: I could print


That's about it for printing, the patch I did was for my samba4-failover
server if you don't patch it it errors on dns updates...
Hope this helps.

Best regards
Tim Vangehugten


2013/5/23 steve <st...@steve-ss.com>
0 new messages