[Samba] disable spoolss - not working

Mike Weller test3 at zyvex.com
Fri Mar 8 12:23:04 GMT 2002


Hi,

I don't want to have to downgrade my samba server to disable spoolss.
I'm running 2.2.3.  (I assume I don't need 2.2.3a since it just fixed
an overwrite bug).

When I use "disable spoolss = no", I can access my printer
\\server\savin just fine.

When I use "disable spoolss = yes", I can see my printer (savin) in
\\server, but when I access it, I get:
"Could not connect to the printer.  Access is denied" from Windows 2000.

All I want to do is get Windows to use LANMAN again, because I get
garbled output with SPOOLSS.  If I can fix the latter problem instead of
trying to figure out how to do LANMAN, then that would be cool as well.

In my debug output, why am I seeing "nt_open_pipe: Opening pipe
\spoolss."  with "disable spoolss = yes"?  Whatever's causing this
error seems to be triggered in "error packet at smbd/nttrans.c(554)
cmd=162 (SMBntcreateX) NT_STATUS_NETWORK_ACCESS_DENIED".  Also, what's
"smb_uid=173"?  That's not related to a passwd uid, because that
doesn't exist on my system.

Anyways, I hope someone can help me!  Thanks.

Below is my smb.conf and debug output.

-Mike

my smb.conf:
   disable spoolss = yes
   load printers = yes
   printer admin = weller  # me
   printcap name = lpstat
   printing = cups
[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = yes
   guest ok = yes
   writable = yes
   public=yes
   printable = yes
   create mode = 0700
   available=yes
   print command = lpr-cups -P %p -o raw %s -r
[print$]
   path=/usr/local/samba/printer
   browseable = yes
   public = yes
   read only = yes
   write list = weller
[savin]
  comment = Savin
  browseable = yes
  printable = yes
  public = yes
  path = /tmp
  create mode = 0700
  printer driver=SAVIN 2545/2245 PCL 5e
  printer driver location=\\%h\PRINT$


some debugging output (level 10).  this is what happens when I 
click on the printer:

[2002/03/08 13:51:11, 10] lib/util_sock.c:read_smb_length_return_keepalive(560)
  got smb length of 92
[2002/03/08 13:51:11, 6] smbd/process.c:process_smb(859)
  got message type 0x0 of len 0x5c
[2002/03/08 13:51:11, 3] smbd/process.c:process_smb(860)
  Transaction 20616 of length 96
[2002/03/08 13:51:11, 5] lib/util.c:show_msg(268)
  size=92
  smb_com=0xa2
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=24
  smb_flg2=18439
[2002/03/08 13:51:11, 5] lib/util.c:show_msg(276)
  smb_tid=15
  smb_pid=452
  smb_uid=173
  smb_mid=31808
  smt_wct=24
[2002/03/08 13:51:11, 5] lib/util.c:show_msg(285)
  smb_vwv[0]=255 (0xFF)
[2002/03/08 13:51:11, 5] lib/util.c:show_msg(285)
  smb_vwv[1]=57054 (0xDEDE)

<REPEATED SEVERAL TIMES>

[2002/03/08 13:51:11, 5] lib/util.c:show_msg(291)
  smb_bcc=9
[2002/03/08 13:51:11, 10] lib/util.c:dump_data(1484)
  [000] 5C 73 70 6F 6F 6C 73 73  00                       \spoolss .
[2002/03/08 13:51:11, 3] smbd/process.c:switch_message(667)
  switch message SMBntcreateX (pid 22052)
[2002/03/08 13:51:11, 4] smbd/uid.c:change_to_user(118)
  change_to_user: Skipping user change - already user
[2002/03/08 13:51:11, 10] smbd/nttrans.c:get_filename(259)
  get_filename: data_offset = 87, data_len = 9, fname_len = 9
[2002/03/08 13:51:11, 4] smbd/nttrans.c:nt_open_pipe(549)
  nt_open_pipe: Opening pipe \spoolss.
[2002/03/08 13:51:11, 3] smbd/error.c:error_packet(99)
  error packet at smbd/nttrans.c(554) cmd=162 (SMBntcreateX) NT_STATUS_NETWORK_ACCESS_DENIED
[2002/03/08 13:51:11, 5] lib/util.c:show_msg(268)
  size=35
  smb_com=0xa2
  smb_rcls=202
  smb_reh=0
  smb_err=49152
  smb_flg=136
  smb_flg2=16385
[2002/03/08 13:51:11, 5] lib/util.c:show_msg(276)
  smb_tid=15
  smb_pid=452
  smb_uid=173
  smb_mid=31808
  smt_wct=0
[2002/03/08 13:51:11, 5] lib/util.c:show_msg(291)
  smb_bcc=0
[2002/03/08 13:51:11, 6] lib/util_sock.c:write_socket(518)
  write_socket(12,39)
[2002/03/08 13:51:11, 6] lib/util_sock.c:write_socket(521)
  write_socket(12,39) wrote 39




More information about the samba mailing list