[Samba] Clients can find printer when

fredex fredex at fcshome.stoneham.ma.us
Sun Jun 6 16:16:38 GMT 2004


On Sun, Jun 06, 2004 at 10:23:46AM -0500, Steve Cohen wrote:
> This is REALLY starting to annoy me.  I have now set up a Win98 client on the 
> network.  Once again I install the proper driver.  Once again the Windows 
> system can browse to the printer.  Once again, printing appears to the client 
> as if it's happening.  Once again nothing comes out of the printer.  Once 

This is exactly the problem I've had. (Using Samba 3.0.x and Cups).
someone else suggested making the particular printer in use here set up
as a RAW print queue in CUPS. Requires editing two cups config files and
connecting to the web UI for cups and changing the printer queue type to
raw. Details can be found in the samba documentation on printing with cups.

I did this and one of my W98 systems can now print to it, though so far
the other one doesn't--perhaps I've not got it set up right, haven't spent
much time on that second one.

> again, there's nothing in the logs to indicate WTF is going on other than the 
> Domain Master Browser.  
> 
> Yet if I run 
> nmblookup -M -d5 DARROW335
> The output tells me that the machine I am running it from IS the domain master 
> browser:
> 
> [root at RAINIER samba]# nmblookup -M -d5 DARROW335
> Initialising global parameters
> params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
> Processing section "[global]"
> doing parameter workgroup = DARROW335
> doing parameter server string = samba server
> doing parameter security = SHARE
> doing parameter encrypt passwords = Yes
> doing parameter obey pam restrictions = Yes
> doing parameter pam password change = Yes
> doing parameter passwd program = /usr/bin/passwd %u
> doing parameter passwd chat = *New*password* %n\n *Retype*new*password* %n\n 
> *passwd:*all*authentication*tokens*updated*successfully*
> doing parameter unix password sync = Yes
> doing parameter log file = /var/log/samba/%m.log
> doing parameter socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
> doing parameter preferred master = No
> doing parameter domain master = No
> doing parameter dns proxy = No
> doing parameter wins server = 192.168.123.70
> wins_srv_load_list(): Building WINS server list:
> 192.168.123.70,
> 1 WINS server listed.
> doing parameter guest ok = Yes
> doing parameter hosts allow = 192.168.123.0/255.255.255.0
> doing parameter printing = cups
> pm_process() returned Yes
> added interface ip=192.168.123.60 bcast=192.168.123.255 nmask=255.255.255.0
> added interface ip=192.168.254.1 bcast=192.168.254.255 nmask=255.255.255.0
> bind succeeded on port 0
> socket option SO_KEEPALIVE = 0
> socket option SO_REUSEADDR = 1
> socket option SO_BROADCAST = 1
> Could not test socket option TCP_NODELAY.
> socket option IPTOS_LOWDELAY = 0
> socket option IPTOS_THROUGHPUT = 0
> socket option SO_SNDBUF = 65535
> socket option SO_RCVBUF = 65535
> socket option SO_SNDLOWAT = 1
> socket option SO_RCVLOWAT = 1
> socket option SO_SNDTIMEO = 0
> socket option SO_RCVTIMEO = 0
> Socket opened.
> querying DARROW335 on 192.168.123.255
> Sending a packet of len 50 to (192.168.123.255) on port 137
> Received a packet of len 62 from (192.168.123.60) port 137
> nmb packet from 192.168.123.60(137) header: id=12688 opcode=Query(0) 
> response=Yes
>     header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes
>     header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
>     answers: nmb_name=DARROW335<1d> rr_type=32 rr_class=1 ttl=259200
>     answers   0 char @...{<   hex 4000C0A87B3C
> Got a positive name query response from 192.168.123.60 ( 192.168.123.60 )
> 192.168.123.60 DARROW335<1d>
> 
> 
> Can someone tell me what all this means?  Is this DMB stuff even relevant to 
> the non-printing problem here?  I have read through all the troubleshooting 
> guides in "Using Samba" by Eckstein, et al.  No answers there to my 
> condition.
> 
> 
> 
> 
> On Saturday 05 June 2004 11:41 pm, Steve Cohen wrote:
> > Thanks, Chris:
> >
> > I tried your suggestions both here and in your other email about getting
> > rid of the Hosts Allow (which was really just something I'd tried earlier
> > and not something I needed).  While they appear to have gotten me further
> > they've not gotten me all the way there yet.
> >
> > Now, when I try to print a document from Windows, it goes through all the
> > pages (spooling, I think) but then an error message pops up indicating that
> > it failed to print (and of course no print comes out).  It won't tell me
> > WHY it failed to print, just that it failed.  (This is more feedback than I
> > got before, so it's a step forward).
> >
> > I do notice that my log.nmbd file contains these messages:
> >
> > [2004/06/05 23:05:26, 0]
> > nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(358)
> >   find_domain_master_name_query_fail:
> >   Unable to find the Domain Master Browser name DARROW335<1b> for the
> > workgroup DARROW335.
> >   Unable to sync browse lists in this workgroup.
> >
> > I get these messages whether the Linux box is or is not the Domain Master
> > Browser.  And I find no configurability of Domain Master Browser at all on
> > the XP side.
> >
> > These messages appear every fifteen minutes and are independent of any
> > attempt to print.  None of the other samba logs describe an attempt to
> > print, and there is nothing in the XP event viewer logs either
> >
> > Very frustrating.
> >
> > On Saturday 05 June 2004 6:24 pm, McKeever Chris wrote:
> > > On Sat, 5 Jun 2004 17:05 , Steve Cohen <stevecoh1 at comcast.net> sent:
> > > >I had a working Samba installation on my home network.  Then I replaced
> > > > one printer with another.  The new printer is successfully installed on
> > > > my RedHat 9.0 system on /dev/lp0.  It is an Epson C82.  From the RedHat
> > > > system all is well.
> > > >
> > > >However, I am unable to print to this printer via Windows XP boxes on my
> > > >network.  Samba is working to the extent that Windows can find these
> > > > printers via browsing.  But that's it.
> > > >
> > > >At first, I would get access denied messages under "Status" on Windows'
> > > >"Printers and Faxes" window.  At that time my smb.conf looked like this:
> > > >
> > > >[root at RAINIER samba]# cat smb.conf
> > > ># Samba config file created using SWAT
> > > ># from RAINIER (127.0.0.1)
> > > ># Date: 2004/06/05 16:09:08
> > > >
> > > ># Global parameters
> > > >[global]
> > > >        workgroup = DARROW335
> > > >        server string = samba server
> > > >        security = SHARE
> > > >        encrypt passwords = Yes
> > > >        obey pam restrictions = Yes
> > > >        pam password change = Yes
> > > >        passwd program = /usr/bin/passwd %u
> > > >        passwd chat = *New*password* %n\n *Retype*new*password* %n\n
> > > >*passwd:*all*authentication*tokens*updated*successfully*
> > > >        username map = /etc/samba/smbusers
> > > >        unix password sync = Yes
> > > >        log level = 3
> > > >        log file = /var/log/samba/%m.log
> > > >        max log size = 0
> > > >        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
> > > >        preferred master = Yes
> > > >        domain master = Yes
> > > >        dns proxy = No
> > > >        wins server = 192.168.123.70
> > > >        guest ok = Yes
> > > >        printing = cups
> > > >
> > > >[homes]
> > > >        comment = Home Directories
> > > >        valid users = %S
> > > >        read only = No
> > > >        create mask = 0664
> > > >        directory mask = 0775
> > > >        browseable = No
> > > >
> > > >[printers]
> > > >        comment = All Printers
> > > >        path = /var/spool/samba
> > > >        printable = Yes
> > > >        browseable = No
> > > >
> > > >[Epson]
> > > >        path = /var/spool/samba
> > > >        read only = No
> > > >        hosts allow = 192.168.123
> > > >        printable = Yes
> > > >        printer name = Epson
> > > >        oplocks = No
> > > >
> > > >[testshare]
> > > >        path = /tmp
> > > >        guest account = ftp
> > > >        read only = No
> > > >        hosts allow = 192.168.123.0/255.255.255.0
> > >
> > > sorry for the double post - but make sure your host allow is right, you
> > > have two different ones within the file (I have never used it) my
> > > suggestion, take it out for now, start basic - get it to work and then
> > > add from there till you break something or get your desired result.
> > >
> > > -------------------------------------------
> > > Chris McKeever
> > > If you want to reply directly to me, please use
> > > cgmckeever--at--prupref---dot---com <A
> > > href="http://www.prupref.com">www.prupref.com</A>
> > > Prudential Preferred Properties
> > > <A href="http://www.prupref.com">Chicago and Illinois NorthShore Real
> > > Estate Experts</A>
> > >
> > > >After reading some of the documentation, I came upon
> > > >"Use Client Driver".  This looked reasonable, since I was in fact
> > > > installing the driver on the Windows boxes.  I added this parameter to
> > > > the config, under the "Epson" section, restarted smbd and nmbd and now,
> > > > I no longer saw "Access Denied", I saw "Ready", but still, all attempts
> > > > to print to this printer from the Windows boxes yielded nothing.  And
> > > > all the auxiliary functions like "Print Test Page" from Windows timed
> > > > out.
> > > >
> > > >Can someone please tell me what I am doing wrong?
> > > >
> > > >Steve Cohen
> > > >--
> > > >To unsubscribe from this list go to the following URL and read the
> > > >instructions:  http://lists.samba.org/mailman/listinfo/samba
> > >
> > > ---- Prudential Preferred Properties   www.prupref.com
> > > Success Driven By Results
> > >    Results Driven By Commitment
> > >       Commitment Driven By Integrity
> > >          We Are Prudential Preferred Properties
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba

-- 
---- Fred Smith -- fredex at fcshome.stoneham.ma.us -----------------------------
  "And he will be called Wonderful Counselor, Mighty God, Everlasting Father,
  Prince of Peace. Of the increase of his government there will be no end. He 
 will reign on David's throne and over his kingdom, establishing and upholding
      it with justice and righteousness from that time on and forever."
------------------------------- Isaiah 9:7 (niv) ------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba/attachments/20040606/3d42d407/attachment.bin


More information about the samba mailing list