LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   win samba printer request vanishes in RH9 (http://www.linuxquestions.org/questions/linux-networking-3/win-samba-printer-request-vanishes-in-rh9-128021/)

hartings 12-22-2003 05:08 AM

win samba printer request vanishes in RH9
 
Hi,

I have made a new RedHat9 install on my server (home network). Configured samba (defined shares etc) on that server using the std samba configure program (under system settings/server settings/samba server). Works fine for my win clients, no problems to access the files from the win clients. Linux client on that network can use the shared printer on the server without problems. The win clients see the printer in win98/XP and it is "ready"! At each win-clients printer request I can see a file being created on my RH9 server in /var/spool/samba. However, the file disappears as soon as it is written (matter of parts of seconds). The win clients can not print on that printer! What is wrong?
(I used the printer configure program included in RH9 to share it)

I also tried to copy corresponding parts of the old smb.conf file from my old Mdk9 server, but it looks different (same version of samba though 2.2.7a). Even when I simply copy the corresponding printer sections from the old smb.conf file into my new RH9 smb.conf file, the win clients can still not print.

What should i do let my win clients use my printer on my RH9 server?

The std RH9 lines in smb.conf related to the printer are:
-------------
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
public = yes
printable = yes
------------

This does not work.
Is path=/var/spool/samba correct? I tried /var/spool/cups, without any positive result.
Both /var/spool/samba and /var/spool/cups are made writable

I tried to use some lines from the old smb.conf file (both with and with the commenting-#signs):

------------
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
public = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
browseable = No

#[EPSON]
# comment = epson C20UX
# path = /tmp
# path = /var/spool/samba
# printer admin =
# guest ok = Yes
# printable = Yes
# print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
# printer name = EPSON
# use client driver = Yes
# printer driver file =

----------------

but nothing works!!!

I am getting desparate...

Thanks for any hints!

Ralf Hartings,
Sweden

hartings 12-22-2003 01:24 PM

just to add:

This is what worked for me before in Mdk9:

[global]
workgroup = mygroup
server string = Samba op de home-Server %v
security = SHARE
encrypt passwords = Yes
unix password sync = Yes
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
character set = ISO8859-1
domain logons = Yes
dns proxy = No
printer admin = @adm
printing = cups

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
browseable = No

[print$]
path = /var/lib/samba/printers
write list = @adm root
read only = No
inherit permissions = Yes
guest ok = Yes
fstype =

[epson]
comment = epson C20UX
path = /tmp
printer admin =
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
printer name = epson
use client driver = Yes
printer driver file =


The directory /var/lib/samba/printers (from my Mdk9 smb.conf) does not exist on RH9. I therefore tried to delete part after part, untill finally completely deleting the [printer] and [print$] sections, but no change. The printer epson is still "ready" on my winXP clients and nothing comes out of the printer.....

Ralf

hartings 12-22-2003 04:17 PM

ooooooh, such a stupid mistake.......

the line:

print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.

is of course wrong! (found that out by reading the logs in the var/log/samba directory)

The command is "lpr -cups" WITH the extra space....

Now it works!

A nice X-mas present!

Ralf


All times are GMT -5. The time now is 01:35 PM.