Samba print server

Oleg Kustov O.Kustov at snoras.com
Fri Jan 22 15:11:59 GMT 1999


Hi all!

I can't make my Samba server to print.
I try do it in different way. This is last:

/etc/printcap:
lp|inkjet: \
        :lp=/dev/lp1: \
        :sd=/var/spool/lpd/lp: \
        :if=/usr/local/bin/lpfilter: \
        :mx#0: \
        :sh
raw: \
        :rw:sh: \
        :lp=/dev/lp1: \
        :sd=/var/spool/lpd/raw: \
        :fx=flp

/usr/local/samba/lib/smb.conf:
[global]
workgroup = SMGRP
username map = /usr/local/samba/lib/users.map
security = share
debug level = 3
printing = bsd
printcap name = /etc/printcap
load printers = yes
[lp]
  comment = System Printer
  path = /var/spool/lpd
  printable = yes
  public = yes
  writable = no
  print command = /usr/bin/lpr -b -P%p %s
  lpq command = /usr/bin/lpq -P%p
  lprm command = /usr/bin/lprm -P%p %j
  create mode = 0700
[raw]
  comment = Raw Device
  path = /var/spool/lpd
  printable = yes
  public = yes
  writable = no
  print command = /usr/bin/lpr -b -P%p %s
  lpq command = /usr/bin/lpq -P%p
  lprm command = /usr/bin/lprm -P%p %j
  create mode = 0700

next some shares, run well

Well, then I try to install network printer on my NT4 client,
try Print Test Page from printer roperties window and get
"Error writing to \\lx1\raw. Access denied."

/usr/local/samba/var/log.smb:
[1999/01/22 15:46:40, 3] smbd/process.c:process_smb(565)
  Transaction 48 of length 115
[1999/01/22 15:46:40, 3] smbd/process.c:switch_message(402)
  switch message SMBtrans (pid 9570)
[1999/01/22 15:46:40, 3] smbd/ipc.c:reply_trans(3621)
  trans <\PIPE\LANMAN> data=0 params=31 setup=0
[1999/01/22 15:46:40, 3] smbd/ipc.c:named_pipe(3476)
  named pipe command on <LANMAN> name
[1999/01/22 15:46:40, 3] smbd/ipc.c:api_reply(3421)
  Got API command 70 of form <zWrLh> <zWWWWzzzzWWzzl>
(tdscnt=0,tpscnt=31,mdrcnt
=1024,mprcnt=6)
[1999/01/22 15:46:40, 3] smbd/ipc.c:api_reply(3426)
  Doing DosPrintQGetInfo
[1999/01/22 15:46:40, 3] smbd/ipc.c:api_DosPrintQGetInfo(815)

What's wrong?

Thank you.
Sincerely, Oleg

  PrintQueue uLevel=3 name=raw
[1999/01/22 15:46:40, 3] printing/printing.c:get_printqueue(1007)
  Running the command `/usr/bin/lpq -Praw' gave 0




More information about the samba mailing list