[Samba] printer queue is not visible on Win2K-client (Access denied)

Noel Kelly nkelly at tarsus.co.uk
Fri Apr 5 11:07:16 GMT 2002


add the following to your global section:

use client driver = yes


Noel

-----Original Message-----
From: Marc Schwarzwälder [mailto:marc at blackforester.net]
Sent: 05 April 2002 19:04
To: samba at lists.samba.org
Subject: [Samba] printer queue is not visible on Win2K-client (Access
denied)


Hello,

I have a quite annoying problem with my samba print server. Printing files 
on the samba-printer
from my Win2K-Client is working without any problems, but I cannot see the 
printer queue
(access denied when double-clicking the printer in Windows). The problem 
was discussed here
before, but I couldn't find a solution that fits to my problem. "disable 
spoolss" didn't change
anything.
Does anybody have a suggestion? Please help... :-[

-> Here's my smb.conf-file:

[global]
  netbios name = linux
  workgroup = BLACKFORESTER
  server string = Samba
  keep alive = 100
  os level = 64
  kernel oplocks = false
  log file = /share/log
  ;log level = 3

  security = user
  encrypt passwords = yes

  username map = /usr/local/samba/lib/smbusers

  printing = lprng
  printcap name = /etc/printcap
  load printers = Yes

  socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY

  interfaces = 192.168.0.20/255.255.255.0

  wins support = yes

  character set = ISO8859-15
  client code page = 850
			
[printers]
  comment = Alle Drucker
  path = /var/spool/lpd
  browseable = yes
  printable = yes
  public = yes
  print command = lpr -P %p -J '%j' %s
  lpq command = lpq -P %p
  lprm command = lprm -P %p %j
  lppause command = lpc hold -P %p %j
  lpresume command = lpc release -P %p %j


-> the printcap-file:

Epson-ascii|lp1|y2prn_Epson.upp--ascii-Epson|y2prn_Epson.upp ascii:\
	:lp=/dev/lp0:\
	:sd=/var/spool/lpd/y2prn_Epson.upp--ascii-Epson:\
	:lf=/var/spool/lpd/y2prn_Epson.upp--ascii-Epson/log:\
	:af=/var/spool/lpd/y2prn_Epson.upp--ascii-Epson/acct:\
	:if=/var/lib/apsfilter/bin/y2prn_Epson.upp--ascii-Epson:\
	:la@:mx#0:\
	:tr=:cl:sh:
#
Epson|lp2|y2prn_Epson.upp--auto-Epson|y2prn_Epson.upp auto:\
	:lp=/dev/lp0:\
	:sd=/var/spool/lpd/y2prn_Epson.upp--auto-Epson:\
	:lf=/var/spool/lpd/y2prn_Epson.upp--auto-Epson/log:\
	:af=/var/spool/lpd/y2prn_Epson.upp--auto-Epson/acct:\
	:if=/var/lib/apsfilter/bin/y2prn_Epson.upp--auto-Epson:\
	:la@:mx#0:\
	:tr=:cl:sh:
#
Epson-raw|lp3|y2prn_Epson.upp--raw-Epson|y2prn_Epson.upp raw:\
	:lp=/dev/lp0:\
	:sd=/var/spool/lpd/y2prn_Epson.upp--raw-Epson:\
	:lf=/var/spool/lpd/y2prn_Epson.upp--raw-Epson/log:\
	:af=/var/spool/lpd/y2prn_Epson.upp--raw-Epson/acct:\
	:if=/var/lib/apsfilter/bin/y2prn_Epson.upp--raw-Epson:\
	:la@:mx#0:\
	:tr=:cl:sh:



-> the lpd.conf-file:

check_for_nonprintable@
force_localhost
client_config_file=/etc/lpd.conf
filter_ld_path=/lib:/usr/lib:/usr/X11R6/lib:/usr/local/lib
filter_path=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/usr/local/sbin:/usr/lib/
filters:/usr/X11R6/bin
mail_operator_on_error=root
pr=/usr/bin/pr
printcap_path=/etc/printcap
printer_perms_path=/etc/lpd.perms
server_config_file=/etc/lpd.conf
server_user=lp
user=lp
group=lp
send_data_first@


-> the lpd.perms-file:

DEFAULT ACCEPT



-> my log-file (created when attempting to open the printer queue from my 
Windows-client)

[2001/06/08 07:19:04, 3] smbd/sec_ctx.c:get_current_groups(162)
   get_current_groups: user is in 6 groups: 100, 17, 33, 102, 103, 104
[2001/06/08 07:19:04, 3] smbd/sec_ctx.c:pop_sec_ctx(421)
   pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2001/06/08 07:19:04, 3] smbd/sec_ctx.c:get_current_groups(162)
   get_current_groups: user is in 6 groups: 100, 17, 33, 102, 103, 104
[2001/06/08 07:19:04, 3] smbd/password.c:register_vuid(328)
   uid 500 registered to name fsmarc
[2001/06/08 07:19:04, 3] smbd/password.c:register_vuid(330)
   Clearing default real name
[2001/06/08 07:19:04, 3] smbd/password.c:register_vuid(332)
   User name: fsmarc	Real name: Fileserv Marc
[2001/06/08 07:19:04, 3] smbd/process.c:chain_reply(1005)
   Chained message
[2001/06/08 07:19:04, 3] smbd/process.c:switch_message(667)
   switch message SMBtconX (pid 1087)
[2001/06/08 07:19:04, 3] smbd/sec_ctx.c:set_sec_ctx(314)
   setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2001/06/08 07:19:04, 3] smbd/password.c:authorise_login(745)
   authorise_login: ACCEPTED: validated uid ok as non-guest (user=fsmarc)
[2001/06/08 07:19:04, 3] smbd/service.c:make_connection(488)
   Connect path is /tmp
[2001/06/08 07:19:04, 3] smbd/sec_ctx.c:push_sec_ctx(282)
   push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2001/06/08 07:19:04, 3] smbd/uid.c:push_conn_ctx(285)
   push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2001/06/08 07:19:04, 3] smbd/sec_ctx.c:set_sec_ctx(314)
   setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2001/06/08 07:19:04, 3] smbd/sec_ctx.c:get_current_groups(162)
   get_current_groups: user is in 6 groups: 100, 17, 33, 102, 103, 104
[2001/06/08 07:19:04, 3] smbd/sec_ctx.c:pop_sec_ctx(421)
   pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2001/06/08 07:19:04, 3] smbd/sec_ctx.c:get_current_groups(162)
   get_current_groups: user is in 6 groups: 100, 17, 33, 102, 103, 104
[2001/06/08 07:19:04, 3] lib/util_seaccess.c:se_access_check(244)
   se_access_check: user sid is
S-1-5-21-134476695-3132041509-2979247151-2000
[2001/06/08 07:19:04, 3] lib/util_seaccess.c:se_access_check(248)
   se_access_check: also S-1-5-21-134476695-3132041509-2979247151-1201
[2001/06/08 07:19:04, 3] lib/util_seaccess.c:se_access_check(248)
   se_access_check: also S-1-5-21-134476695-3132041509-2979247151-1035
[2001/06/08 07:19:04, 3] lib/util_seaccess.c:se_access_check(248)
   se_access_check: also S-1-5-21-134476695-3132041509-2979247151-1067
[2001/06/08 07:19:04, 3] lib/util_seaccess.c:se_access_check(248)
   se_access_check: also S-1-5-21-134476695-3132041509-2979247151-1205
[2001/06/08 07:19:04, 3] lib/util_seaccess.c:se_access_check(248)
   se_access_check: also S-1-5-21-134476695-3132041509-2979247151-1207
[2001/06/08 07:19:04, 3] lib/util_seaccess.c:se_access_check(248)
   se_access_check: also S-1-5-21-134476695-3132041509-2979247151-1209
[2001/06/08 07:19:04, 3] lib/util_seaccess.c:se_access_check(248)
   se_access_check: also S-1-1-0
[2001/06/08 07:19:04, 3] lib/util_seaccess.c:se_access_check(248)
   se_access_check: also S-1-5-2
[2001/06/08 07:19:04, 3] lib/util_seaccess.c:se_access_check(248)
   se_access_check: also S-1-5-11
[2001/06/08 07:19:04, 3] smbd/vfs.c:vfs_init_default(99)
   Initialising default vfs hooks
[2001/06/08 07:19:04, 3] smbd/sec_ctx.c:set_sec_ctx(314)
   setting sec ctx (500, 100) - sec_ctx_stack_ndx = 0
[2001/06/08 07:19:04, 3] smbd/sec_ctx.c:set_sec_ctx(319)
   6 user groups:
   100 17 33 102 103 104
[2001/06/08 07:19:04, 3] smbd/vfs.c:vfs_ChDir(669)
   vfs_ChDir to /tmp
[2001/06/08 07:19:04, 3] smbd/service.c:make_connection(615)
   main (192.168.0.10) connect to service IPC$ as user fsmarc (uid=500, 
gid=100) (pid 1087)
[2001/06/08 07:19:04, 3] smbd/sec_ctx.c:set_sec_ctx(314)
   setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2001/06/08 07:19:04, 3] smbd/reply.c:reply_tcon_and_X(395)
   tconX service=ipc$ user=fsmarc
[2001/06/08 07:19:04, 3] smbd/process.c:process_smb(860)
   Transaction 3 of length 96
[2001/06/08 07:19:04, 3] smbd/process.c:switch_message(667)
   switch message SMBntcreateX (pid 1087)
[2001/06/08 07:19:04, 3] smbd/sec_ctx.c:set_sec_ctx(314)
   setting sec ctx (500, 100) - sec_ctx_stack_ndx = 0
[2001/06/08 07:19:04, 3] smbd/sec_ctx.c:set_sec_ctx(319)
   6 user groups:
   100 17 33 102 103 104
[2001/06/08 07:19:04, 3] smbd/nttrans.c:nt_open_pipe(566)
   nt_open_pipe: Known pipe spoolss opening.
[2001/06/08 07:19:04, 3] smbd/process.c:process_smb(860)
   Transaction 4 of length 140
[2001/06/08 07:19:04, 3] smbd/process.c:switch_message(667)
   switch message SMBwriteX (pid 1087)
[2001/06/08 07:19:04, 3] rpc_server/srv_pipe.c:api_pipe_bind_req(751)
   api_pipe_bind_req: \PIPE\spoolss -> \PIPE\spoolss
[2001/06/08 07:19:04, 3] smbd/pipes.c:reply_pipe_write_and_X(198)
   writeX-IPC pnum=7477 nwritten=72
[2001/06/08 07:19:04, 3] smbd/process.c:process_smb(860)
   Transaction 5 of length 63
[2001/06/08 07:19:04, 3] smbd/process.c:switch_message(667)
   switch message SMBreadX (pid 1087)
[2001/06/08 07:19:04, 3] smbd/pipes.c:reply_pipe_read_and_X(239)
   readX-IPC pnum=7477 min=1024 max=1024 nread=68
[2001/06/08 07:19:04, 3] smbd/process.c:process_smb(860)
   Transaction 6 of length 1138
[2001/06/08 07:19:04, 3] smbd/process.c:switch_message(667)
   switch message SMBtrans (pid 1087)
[2001/06/08 07:19:04, 3] smbd/ipc.c:reply_trans(480)
   trans <\PIPE\> data=1058 params=0 setup=2
[2001/06/08 07:19:04, 3] smbd/ipc.c:named_pipe(334)
   named pipe command on <> name
[2001/06/08 07:19:04, 3] smbd/ipc.c:api_fd_reply(296)
   Got API command 0x26 on pipe "spoolss" (pnum 7477)free_pipe_context: 
destroying talloc pool of size 0
[2001/06/08 07:19:04, 3] rpc_server/srv_pipe.c:api_pipe_request(1148)
   Doing \PIPE\spoolss
[2001/06/08 07:19:04, 3] rpc_server/srv_pipe.c:api_rpcTNP(1180)
   api_rpcTNP: pipe 29815 rpc command: SPOOLSS_OPENPRINTEREX
   checking name: \\LINUX\Epson-raw
[2001/06/08 07:19:04, 3] 
rpc_server/srv_spoolss_nt.c:set_printer_hnd_printertype(378)
   Setting printer type=\\LINUX\Epson-raw
[2001/06/08 07:19:04, 3] lib/util_seaccess.c:se_access_check(244)
   se_access_check: user sid is
S-1-5-21-134476695-3132041509-2979247151-2000
[2001/06/08 07:19:04, 3] lib/util_seaccess.c:se_access_check(248)
   se_access_check: also S-1-5-21-134476695-3132041509-2979247151-1201
[2001/06/08 07:19:04, 3] lib/util_seaccess.c:se_access_check(248)
   se_access_check: also S-1-5-21-134476695-3132041509-2979247151-1035
[2001/06/08 07:19:04, 3] lib/util_seaccess.c:se_access_check(248)
   se_access_check: also S-1-5-21-134476695-3132041509-2979247151-1067
[2001/06/08 07:19:04, 3] lib/util_seaccess.c:se_access_check(248)
   se_access_check: also S-1-5-21-134476695-3132041509-2979247151-1205
[2001/06/08 07:19:04, 3] lib/util_seaccess.c:se_access_check(248)
   se_access_check: also S-1-5-21-134476695-3132041509-2979247151-1207
[2001/06/08 07:19:04, 3] lib/util_seaccess.c:se_access_check(248)
   se_access_check: also S-1-5-21-134476695-3132041509-2979247151-1209
[2001/06/08 07:19:04, 3] lib/util_seaccess.c:se_access_check(248)
   se_access_check: also S-1-1-0
[2001/06/08 07:19:04, 3] lib/util_seaccess.c:se_access_check(248)
   se_access_check: also S-1-5-2
[2001/06/08 07:19:04, 3] lib/util_seaccess.c:se_access_check(248)
   se_access_check: also S-1-5-11
[2001/06/08 07:19:04, 3] 
rpc_server/srv_spoolss_nt.c:_spoolss_open_printer_ex(804)
   access DENIED for printer open
[2001/06/08 07:19:04, 3] rpc_server/srv_lsa_hnd.c:close_policy_hnd(186)
   Closed policy
[2001/06/08 07:19:04, 3] rpc_server/srv_pipe_hnd.c:free_pipe_context(440)
   free_pipe_context: destroying talloc pool of size 2692








-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba




More information about the samba mailing list