More Printer Troubles for NT --> Samba Server

Rick Flower flower at ms31.sp.trw.com
Fri Nov 14 01:53:57 GMT 1997


I'm hoping that someone will be able to shed some light on my problem that I'm
having w/ getting an NT 4.0 box (SP3) to be able to print to a samba server
(1.9.17p3) running Solaris 2.5.1.  I've had it working a few times, but I
can't seem to get it to work anymore.  I've read through just about everything
I can think of including the archives for this list.  Anyway, basically what
I'm getting is the following error when I attempt to print after installing
the appropriate WinNT driver for the printer :

"The Filename, Directory Name, or Volume Label syntax is incorrect"

I get this from within Notepad, and also if I try to print a testpage from
the properties window of the printer.  The funny thing is, I see NOTHING
in the Samba logs indicating that the machine was even TRYING to print!  I've
tried changing the name of the printer to various things, and nothing appears
to be changing the net result.  I've also tried doing the following, which
appears to work fine :

% smbclient '\\justice\201_1718' -P

When I do that, it prompts me for my password (which I give), and then allows
me in.. At that point, I can type "print \.cshrc" or whatever to get a sample
output.. I'm just a bit miffed about why NT is unable to do the same!

Here is my smb.conf file (partial)

;======================= Global Settings =====================================
[global]

  debuglevel     = 3
  workgroup      = DH
  comment        = Justice Samba Server
  admin users    = root, flower
  load printers  = no
  printing       = sysv
  log file       = /usr/local/samba/var/log.%m
  username map   = /usr/local/samba/lib/users.map
  max log size   = 50
  hide dot files = yes
  preserve case  = yes
  short preserve case = yes
  guest account  = ftp

  lock directory = /usr/local/samba/var/locks
  locking        = yes
  share modes    = yes
  wins server    = 129.193.108.22
;  socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=16384 SO_RCVBUF=16384
   security = user

;============================ Share Definitions ==============================
[201_1718]
   comment     = Network printer queue for HP Laserjet 5 in Bldg 201/1718 Bay
   browseable  = yes
   available   = yes
   public      = no
   guest ok    = no
;   force user  = root
   writeable   = no
   printable   = yes
   printer name = b201_1718_bay
   printer driver = HP LaserJet 5/5M PostScript
   path        = /var/spool/samba
   create mask = 0700

Also, keep in mind that I seem to get lots of the following errors in my log
files (only occasionally -- usually when I keep killing the server & restarting
to try new parameters) :

chdir to /usr/local/samba/lib
11/13/97 17:32:25 Transaction 4 of length 82
switch message SMBopenX (pid 9774)
chdir to /tmp
11/13/97 17:32:25 error packet at line 109 cmd=45 (SMBopenX) eclass=2 ecode=4
11/13/97 17:32:25 Transaction 5 of length 82
switch message SMBopenX (pid 9774)
11/13/97 17:32:25 error packet at line 109 cmd=45 (SMBopenX) eclass=2 ecode=4
11/13/97 17:32:25 Transaction 6 of length 103
switch message SMBtrans (pid 9774)
trans <\PIPE\LANMAN> data=0 params=19 setup=0
Got API command 0 of form <WrLeh> <B13BWz> (tdscnt=0,tpscnt=19,mdrcnt=4096,mprcnt=8)
Doing RNetShareEnum
RNetShareEnum gave 8 entries of 8 (1 4096 514 4096)
11/13/97 17:32:27 Transaction 7 of length 83
switch message SMBopenX (pid 9774)
11/13/97 17:32:27 error packet at line 96 cmd=45 (SMBopenX) eclass=2 ecode=4
11/13/97 17:32:27 Transaction 8 of length 83
switch message SMBopenX (pid 9774)
11/13/97 17:32:27 error packet at line 96 cmd=45 (SMBopenX) eclass=2 ecode=4
11/13/97 17:32:27 Transaction 9 of length 121


More information about the samba mailing list