[Samba] Printing problem

Hactar eben at gate.net
Wed Feb 13 08:45:12 GMT 2002

I'm unable to print from a Windows 2000 VMware machine, to a Samba 2.2.1a
host.  In the "Status" line about the printer in Windows, I see "Access
denied, unable to connect".  I can squeeze out a print by printing to a
file, then dumping that file to the printer in Linux.  The last couple of
lines from that machine's log file are:

[2002/02/13 11:10:22, 2] lib/access.c:check_access(316)
  Allowed connection from  (
[2002/02/13 11:12:23, 2] lib/access.c:check_access(316)
  Allowed connection from  (

Should there be something, between "from" and "("?

I've got this in /etc/hosts.lpd:

("vmware" is defined in /etc/hosts as being, which is the
address of the machine.)

And this in /etc/hosts.allow:
ALL : localhost,192.168.1.

The relevant lines from smb.conf are:
        hosts allow = 192.168.1.
        printing = lpr
        print command = echo "on printer '%p', file '%P/%s'" >> /tmp/file2 ; /usr/bin/lpr -r -P"%p" "%s"

I have lpr, not lprng.  I felt lprng was too much of a configuration
nightmare, and I only have a few users (all of whom are trusted), and
nobody can reach in here from the outside.

Does anybody know how to fix this?  Thanks.

-eben          eQbWeEnR at gTaYtUeI.nOePt         home.tampabay.rr.com/hactar
LEO:  Now is not a good time to photocopy your butt and staple it to your
boss' face, oh no.  Eat a bucket of banana pudding and wash it down with a
gallon of strawberry Quik.  -- Weird Al, _Your Horoscope for Today_

More information about the samba mailing list