[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Samba printing: can't print from windoze



Ok, I have fought with this same thing for days now, I finally got the answer off LinuxQuestions.org

Here are the changes I made to the smb.conf file

#global
printcap name = /etc/printcap
load printers = yes
disable spoolss = yes
printing = cups
printcap name = lpstat
map to guest = Bad User

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = yes
writable = yes
printable = yes
use client driver = yes

CUPS won't allow clients to send binary data to a print queue by default as it regards it as a denial of service attack on the printer. CUPS expects nice things like plain text and postscript. To get CUPS to except the binary data from your XP clients you probably need to edit two files

Edit /etc/cups/mime.types

scroll to near the bottom and uncomment (remove the hash) from this line

application/octet-stream

Now edit/etc/cups/mime.convs

Scroll to near the end again and uncomment the line that looks like

application/octet-stream application/vnd.cups-raw 0 -

Now restart CUPS

service cups restart

and you're good to go.


Hope that helps. After I made these changes the windows machines could access the printers, print and que up.



R Race


Tom Eastgard wrote:

On Fri, 2003-10-03 at 05:22, Jason Tesser wrote:


OK, no error messages in samba logs.

-----Original Message-----
From: Tom N. Eastgard [mailto:tom eastgard org]
Sent: Wednesday, October 01, 2003 3:34 PM
To: Red Hat Install List
Subject: Samba printing: can't print from windoze


OK..this is driving me nuts.


I cannot print from Windoze, consistenly getting a "Access denied; Unable to connect" error message" from my samba print server.

Config ---
Server: RH9.0 uptodate with patches, errata.
        Samba 2.2.7
    HP OfficeJet K60 - hpoj 0.90-14

Client: Win2K w/sp4
    HP OfficeJet K60 driver

What I *can* do ---

Print just fine on RH9/Samba server to the directly connected HP Office jet via USB connection.

From Windoze client, access all appropriate shares on Server -- read/write, etc.

From client, I can print from Windoze CL, e.g. C:\echo Blah, blah > \\Samba_server\device_name.

What I can*not* do ---

From the client Win2K config printer window do a test print.

When I pull up "properties" on the shared printer, I get the "Access denied..." error.

All suggestions, recommendations and jeers cheerfully accepted...

TIA, te



So, there were apparently two problems: One was related to access and
the second to drivers conflicting...?


First step per a thread on the Samab list -

Hi,

i know how to remove access denied !

edit you smb.conf and add the line

use client driver = yes

to you printers section..

This solved the access problem for me also, but the print jobs still
weren't going thru to the printer.

For the second: Short ans - change the CUP/Linux driver to "raw".

Long ans:  When I configured the printer on the Linux machine, I
naturally configured the appropriat driver, in my case, hpijs.  The
Windoze client also demands a driver so you wind up with two drivers in
series...since I can't figure out how to get the Windoze2K machine to
access the Samba print share without a local driver, I hat to, in
effect, delete the Linux one.

I have not done extensive testing, but I could print from MS Word and
from NotePad just fine, so I'll assume its all OK.

Cheers, te


_______________________________________________ Redhat-install-list mailing list Redhat-install-list redhat com https://www.redhat.com/mailman/listinfo/redhat-install-list To Unsubscribe Go To ABOVE URL or send a message to: redhat-install-list-request redhat com Subject: unsubscribe

.








[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]