LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Samba print share from RH9 to WinXP (http://www.linuxquestions.org/questions/linux-software-2/samba-print-share-from-rh9-to-winxp-77300/)

nick_uk 07-30-2003 09:56 AM

Samba print share from RH9 to WinXP
 
Sorry for the cross post (i posted this under software)

Can anyone please help me, im going nuts tring to figure this out.

I have a Samsung ML1210 USB printer setup on my RH9 box (printing fine). I CAN print from other Linux boxes to this printer no problem. I can also shell out to DOS from my XP box and issue a print command to the printer (print /D:\\smith\samsung c:\textfile.txt) and this also prints no problem.

My problem arrises when i try to print to the "samba printer" i can connect but then i get access denied as a status. agghhhh

here's my smb.conf file

[global]
workgroup = EBUSINESS
server string = smith
encrypt passwords = Yes
username map = /etc/samba/smbusers
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
guest ok = Yes
printing = cups
printcap name = cups
load printers = yes

[homes]
comment = Home directories
valid users = %S
read only = No
directory mask = 0775
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[share]
path = /share
read only = No

[samsung]
comment = ML-1210
path = /var/spool/samba
read only = No
printable = Yes
printer name = samsung

Mathieu 07-31-2003 12:27 PM

Does the printer start printing ?

There was a similar thread
http://www.linuxquestions.org/questi...5&pagenumber=3

nick_uk 08-01-2003 02:53 AM

Thanks for your reply but i have just found the answer. YIPEE

The problem was not samba but cups

as soon as i uncommented the following line from /etc/cups/mime.convs:
application/octet-stream application/vnd.cups-raw 0 -


and also uncommented the following line from /etc/cups/mime.types:
application/octet-stream

and added these lines to /etc/cups/cupsd.conf: <Location /printers>
AuthType None
Order Deny,Allow
Deny From None
Allow From All
</Location>


restarted samba & cups and hey presto! we have printing (wow its only taken two weeks)

brakerm19 08-10-2003 12:19 PM

Thank You.
 
I had the same problem "access denied" the mime.xxx and the cups.conf fixed the problem

curious though how did you come up with the solution?

niverson 08-10-2003 10:14 PM

I bought a Samsung ML1710 because it stated it had Linux support. After a lot of messing around, I have it set up on a RedHat 8.0 print server(lpr). The only issue that I have now is trying to print to it from Windows 2000 and XP. The Windows machines can see the server and the ML-1710 print share. When printing from windows, I get a access denied and the printer starts printing garbage and won't stop till I turn the pritner off. I think have believe I have samba setup correctly(workgroup, samba usernames/passwords). Does anyone have any ideas?

Thanks,
Nate

nick_uk 08-11-2003 08:41 AM

how did i fix the problem, after days of searching and reading articles on the web i came across this one

http://www.faqs.org/docs/Linux-mini/...re_cups_config


All times are GMT -5. The time now is 12:47 PM.