SAMBA digest 1959

Oleg Kustov O.Kustov at snoras.com
Thu Jan 28 07:14:59 GMT 1999


>Date: Wed, 27 Jan 1999 06:14:48 +0000
>From: "Alain M. Gaudrault" <alain at gaudrault.net>
>To: samba at samba.org
>Subject: Help! NT not sending file to printer?
>Message-ID: <36AEAED8.2D5D469A at gaudrault.net>
>
>I've had no luck getting NT to print to my Samba-mounted printer.
>Here's the scenario:
>
>I have Samba set up properly enough so that I can see both disk and
>printer shares from Network Neighbourhood, I can mount the disk shares
>and use them, no problem.  I can even Add a Printer without any
>hiccups.  But when I try to print the test page, NT pops up "Test page
>failed to print.  Would you like to view the print trouble shooter for
>assistance?  The parameter is incorrect."  Attempts to print from any
>programmes fail as well.
>
>The strange this is that if I use a command prompt on NT and type "net
>use lpt1: \\machine\printer", and then use the "print" command,
>everything works!  But if I use the "Add a Printer" dialogue to add a
>network printer, no go.
>
>I've included my smb.conf, though I doubt there's a problem there, since
>as I said, I can get it to print from NT, but only from the command
>line.  Whether I try adding a local or network printer, same deal.
>
>I even went as far as to use strace on smbd to see what was happening
>when I tried to print on NT.  It seems like Samba is receiving the
>request, but it's not receiving any content to be printed, so it
>aborts.  This is what I see:
>
>stat("ALAIN.a08958", {st_mode=0, st_size=0, ...}) = 0
>write(3, "Discarding null print job ALAIN."..., 39) = 39
>unlink("ALAIN.a08958")                  = 0
>
>And I looked earlier to see where ALAIN.a08958 gets created, and between
>it being created and closed, there are no writes to the file.  So it
>seems like the request is making it, but not the file to print.
>
>Any suggestions?  I'm at my wit's end.
>
>I'm running Samba 1.9.18p10 on RedHat5.1/Intel.  Here's smb.conf:
>
>[global]
>        server string = mort the Linux box
>        interfaces = 192.168.69.1/24
>        encrypt passwords = Yes
>        log level = 4
>        syslog = 4
>        log file = /var/log/samba/log.%m
>        max log size = 50
>        socket options = TCP_NODELAY
>        os level = 10
>        preferred master = Yes
>        domain master = Yes
>        dns proxy = No
>        message command = /bin/mail -s 'message from %f on %m' root <
>%s; rm %s
>        remote announce = 192.168.69.2/WORKGROUP
>        comment = samba-mort
>        valid users = alain, kim
>        read list = alain, kim
>        write list = alain
>        hosts allow = 192.168.69.2 127.
>        hosts deny = all
>        security = user
>
>[homes]
>        comment = Home Directories
>        available = no
>
>[printers]
>        comment = All Printers
>        path = /tmp

          guest account = lp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>        create mask = 0777
>        print ok = Yes
>        print command = /usr/bin/lpr -r -P%p %s
>        lpq command = /usr/bin/lpq -P%p
>        lprm command = /usr/bin/lprm -P%p %j
>        printer driver = EPSON Stylus COLOR 640
>        browseable = No
>
>--

Hi!

I had the same problem. I solve it by adding line as above in my smb.conf.
My UNIX is Linux that do not let print with username "nobody".

Good luck, Oleg




More information about the samba mailing list