trouble with rpcclient setdriver using Samba 2.2.7a on RH Linux 7.3

Christopher J. Tengi tengi at CS.Princeton.EDU
Tue Feb 25 23:04:27 GMT 2003


Using Samba version 2.2.7a on a Red Had Linux 7.3 system (named ream, as in 
paper), I gave this command:

========
rpcclient ream -c 'setdriver hp_233 "HP LaserJet 4050 Series PS"'
========

and got the following printed on my screen:

========
session setup ok
Domain=[CS] OS=[Unix] Server=[Samba 2.2.7a]
cmd = setdriver hp_233 "HP LaserJet 4050 Series PS"
setdriver hp_233 "HP LaserJet 4050 Series PS"
SetPrinter call failed!
result was NT_STATUS_ACCESS_DENIED
========

Here is what showed up in the log.smbd file:

========
[2003/02/25 17:49:38, 0, pid=10207] rpc_parse/parse_spoolss.c:spoolss_io_devmod
e(606)
  spoolss_io_devmode: Unknown specversion in devicemode [0x0]
[2003/02/25 17:49:38, 0, pid=10207] rpc_parse/parse_spoolss.c:spoolss_io_devmod
e(608)
  spoolss_io_devmode: please report to samba-technical at samba.org!
[2003/02/25 17:49:38, 0, pid=10207] rpc_parse/parse_spoolss.c:spoolss_io_devmod
e(704)
  spoolss_io_devmode: I've parsed all I know and there is still stuff left|
[2003/02/25 17:49:38, 0, pid=10207] rpc_parse/parse_spoolss.c:spoolss_io_devmod
e(705)
  spoolss_io_devmode: available_space = [-220], devmode_size = [0]!
[2003/02/25 17:49:38, 0, pid=10207] rpc_parse/parse_spoolss.c:spoolss_io_devmod
e(707)
  spoolss_io_devmode: please report to samba-technical at samba.org!
[2003/02/25 17:49:38, 0, pid=10207] rpc_server/srv_spoolss.c:api_spoolss_setpri
nter(600)
  spoolss_io_q_setprinter: unable to unmarshall SPOOL_Q_SETPRINTER.
[2003/02/25 17:49:38, 0, pid=10207] rpc_server/srv_pipe.c:api_rpcTNP(1200)
  api_rpcTNP: api_spoolss_rpc: SPOOLSS_SETPRINTER failed.
========

Note that rpcclient commands like "getprinter hp_233" seem to work OK.  
However enumdrivers and enumprinters do not return anything useful, even after 
I have successfully used an XP machine to put driver files in print$ (by 
browsing to my samba server, and following the instructions to install drivers 
in the "Printing Support in Samba 2.2.x" web pages).  Here is what I see:

========
ream 138> rpcclient ream -c enumdrivers
Enter Password: 
session setup ok
Domain=[CS] OS=[Unix] Server=[Samba 2.2.7a]
cmd = enumdrivers
enumdrivers
ream 139> ^drivers^printers
rpcclient ream -c enumprinters
Enter Password: 
session setup ok
Domain=[CS] OS=[Unix] Server=[Samba 2.2.7a]
cmd = enumprinters
enumprinters
result was NT_STATUS_BUFFER_TOO_SMALL
========

Nothing shows up in the log.smbd file after these "failures."


So, am I doing something wrong?  I'll include my smb.conf file below.  Note 
that I am using the lpr and lpq commands, rather than completely relying on 
CUPS, so that we can use printer instances to control feature (duplex, 
simplex, manual feed, etc) by queue name, rather than hope that each user gets 
it right.  It allows us to make duplex printing the default, and hard to 
over-ride (through some PPD magic).

					Thanks,
						/Chris


-------------- next part --------------
[global]
	workgroup = CS
	security = server
	server string = CS Print Server - Samba %v
	password server = bart lisa
	wins server = 128.112.137.3
	netbios name = ream
	domain master = no
	local master = no
	preferred master = no
	os level = 0
	;
	allow hosts = 192.168.0.0/255.255.0.0,128.112.0.0/255.255.0.0,140.180.0.0/255.255.0.0,172.16.0.0/255.240.0.0
	;
	dead time = 30
	debug level = 1
	debug pid = yes
	socket options = TCP_NODELAY
	;
	message command = /usr/local/bin/zwrite -q -c PRINTER -i samba:%f@%m < %s ; rm %s
	;
	; members of the ntadmin group should be able
	; to add drivers and set printer properties
	; root is implicitly a 'printer admin'
	;
	printer admin = cmmiller,elgersma,jrc,jmr,jonesy,tengi
	add printer command = /bin/true
	delete printer command = /bin/true
	load printers = no
	lpq cache time = 10
	;
	case sensitive = no

[print$]
	path = /var/local/samba/printers
	public = yes
	browseable = yes
	; since this share is configured as read only, then we need
	; sure this account can copy files to the share.  If this
	; is setup to a non-root account, then it should also exist
	; as a 'printer admin'
	write list = cmmiller,elgersma,jrc,jmr,jonesy,tengi

[lp]
	comment = default print share
	;
	public = yes
	;
	browseable = no
	create mask = 0700
	map archive = no
	writable = no
	;
	printable = yes
	printing = cups
	print command = /var/local/etc/strip_pjl < %s | /usr/bin/lpr -T %s -P%p; rm -f %s
	lpq command = /usr/bin/lpq -P%p
	;
	default case = lower
	mangle case = no
	preserve case = yes
	short preserve case = yes

; printer definitions from the invdb

[hp_030]
	copy = lp
	printer = hp_030
	browseable = yes
	comment = HP LaserJet 4000 Series PS

[hp_030d]
	copy = lp
	printer = hp_030/duplex
	browseable = yes
	comment = HP LaserJet 4000 Series PS (Duplex)

[hp_030m]
	copy = lp
	printer = hp_030/manual
	browseable = yes
	comment = HP LaserJet 4000 Series PS (ManualFeed,Simplex)

[hp_030s]
	copy = lp
	printer = hp_030/simplex
	browseable = yes
	comment = HP LaserJet 4000 Series PS (Simplex)

[hp_209]
	copy = lp
	printer = hp_209
	browseable = yes
	comment = HP LaserJet 2100 Series

[hp_218]
	copy = lp
	printer = hp_218
	browseable = yes
	comment = HP LaserJet 4Si/4SiMX PS

[hp_218d]
	copy = lp
	printer = hp_218/duplex
	browseable = yes
	comment = HP LaserJet 4Si/4SiMX PS (Duplex)

[hp_218m]
	copy = lp
	printer = hp_218/manual
	browseable = yes
	comment = HP LaserJet 4Si/4SiMX PS (ManualFeed)

[hp_218s]
	copy = lp
	printer = hp_218/simplex
	browseable = yes
	comment = HP LaserJet 4Si/4SiMX PS (Simplex)

[hp_233]
	copy = lp
	printer = hp_233
	browseable = yes
	comment = HP LaserJet 4050 Series PS

[hp_233d]
	copy = lp
	printer = hp_233/duplex
	browseable = yes
	comment = HP LaserJet 4050 Series PS (Duplex)

[hp_233m]
	copy = lp
	printer = hp_233/manual
	browseable = yes
	comment = HP LaserJet 4050 Series PS (ManualFeed,Simplex)

[hp_233s]
	copy = lp
	printer = hp_233/simplex
	browseable = yes
	comment = HP LaserJet 4050 Series PS (Simplex)

[hp_306]
	copy = lp
	printer = hp_306
	browseable = yes
	comment = HP LaserJet 4/4M Plus PS 600

[hp_309]
	copy = lp
	printer = hp_309
	browseable = yes
	comment = HP LaserJet 5/5M PostScript

[hp_311]
	copy = lp
	printer = hp_311
	browseable = yes
	comment = HP LaserJet 4/4M Plus PS 600

[hp_319]
	copy = lp
	printer = hp_319
	browseable = yes
	comment = HP LaserJet 4/4M Plus PS 600

[hp_331]
	copy = lp
	printer = hp_331
	browseable = yes
	comment = HP LaserJet 4V/4MV PostScript

[hp_331c]
	copy = lp
	printer = hp_331c
	browseable = yes
	comment = HP Color LaserJet 5/5M PS

[hp_331l]
	copy = lp
	printer = hp_331/legal
	browseable = yes
	comment = HP LaserJet 4V/4MV PostScript (Legal)

[hp_331m]
	copy = lp
	printer = hp_331/manual
	browseable = yes
	comment = HP LaserJet 4V/4MV PostScript (ManualFeed)

[hp_331t]
	copy = lp
	printer = hp_331/tabloid
	browseable = yes
	comment = HP LaserJet 4V/4MV PostScript (Tabloid)

[hp_334]
	copy = lp
	printer = hp_334
	browseable = yes
	comment = HP LaserJet 4050 Series PS

[hp_334d]
	copy = lp
	printer = hp_334/duplex
	browseable = yes
	comment = HP LaserJet 4050 Series PS (Duplex)

[hp_334m]
	copy = lp
	printer = hp_334/manual
	browseable = yes
	comment = HP LaserJet 4050 Series PS (ManualFeed)

[hp_334s]
	copy = lp
	printer = hp_334/simplex
	browseable = yes
	comment = HP LaserJet 4050 Series PS (Simplex)

[hp_431]
	copy = lp
	printer = hp_431
	browseable = yes
	comment = HP LaserJet 4050 Series PS

[hp_431d]
	copy = lp
	printer = hp_431/duplex
	browseable = yes
	comment = HP LaserJet 4050 Series PS (Duplex)

[hp_431m]
	copy = lp
	printer = hp_431/manual
	browseable = yes
	comment = HP LaserJet 4050 Series PS (Simplex,ManualFeed)

[hp_431s]
	copy = lp
	printer = hp_431/simplex
	browseable = yes
	comment = HP LaserJet 4050 Series PS (Simplex)

[hp_arora]
	copy = lp
	printer = hp_arora
	browseable = yes
	comment = HP LaserJet 4/4M Plus PS 600

[hp_august]
	copy = lp
	printer = hp_august
	browseable = yes
	comment = HP LaserJet 4/4M Plus PS 600

[hp_chazelle]
	copy = lp
	printer = hp_chazelle
	browseable = yes
	comment = HP LaserJet 2100 Series

[hp_dobbo]
	copy = lp
	printer = hp_dobbo
	browseable = yes
	comment = HP LaserJet 4/4M PS

[hp_li]
	copy = lp
	printer = hp_li
	browseable = yes
	comment = HP LaserJet 4/4M Plus PS 600

[hp_liberty]
	copy = lp
	printer = hp_liberty
	browseable = yes
	comment = HP LaserJet 8100 Series PS

[hp_libertyd]
	copy = lp
	printer = hp_liberty/duplex
	browseable = yes
	comment = HP LaserJet 8100 Series PS (Duplex)

[hp_libertyt]
	copy = lp
	printer = hp_liberty/tabloid
	browseable = yes
	comment = HP LaserJet 8100 Series PS (Tabloid)

[hp_libertytd]
	copy = lp
	printer = hp_liberty/tabloid-duplex
	browseable = yes
	comment = HP LaserJet 8100 Series PS (Tabloid/Duplex)

[hp_llp]
	copy = lp
	printer = hp_llp
	browseable = yes
	comment = HP 2000C

[nec_dobbo]
	copy = lp
	printer = nec_dobbo
	browseable = yes
	comment = SuperScript 4400

[xrx_101]
	copy = lp
	printer = xrx_101
	browseable = yes
	comment = Xerox DocuPrint N2125 PS

[xrx_101d]
	copy = lp
	printer = xrx_101/duplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Duplex)

[xrx_101m]
	copy = lp
	printer = xrx_101/manual
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (ManualFeed)

[xrx_101s]
	copy = lp
	printer = xrx_101/simplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Simplex)

[xrx_103a]
	copy = lp
	printer = xrx_103a
	browseable = yes
	comment = Xerox DocuPrint N2125 PS

[xrx_103ad]
	copy = lp
	printer = xrx_103a/duplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Duplex)

[xrx_103am]
	copy = lp
	printer = xrx_103a/manual
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (ManualFeed)

[xrx_103as]
	copy = lp
	printer = xrx_103a/simplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Simplex)

[xrx_103b]
	copy = lp
	printer = xrx_103b
	browseable = yes
	comment = Xerox DocuPrint N2125 PS

[xrx_103bd]
	copy = lp
	printer = xrx_103b/duplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Duplex)

[xrx_103bm]
	copy = lp
	printer = xrx_103b/manual
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (ManualFeed)

[xrx_103bs]
	copy = lp
	printer = xrx_103b/simplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Simplex)

[xrx_103c]
	copy = lp
	printer = xrx_103c
	browseable = yes
	comment = Xerox DocuPrint N2125 PS

[xrx_103cd]
	copy = lp
	printer = xrx_103c/duplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Duplex)

[xrx_103cm]
	copy = lp
	printer = xrx_103c/manual
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (ManualFeed)

[xrx_103cs]
	copy = lp
	printer = xrx_103c/simplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Simplex)

[xrx_219]
	copy = lp
	printer = xrx_219
	browseable = yes
	comment = Xerox DocuPrint N2125 PS

[xrx_219d]
	copy = lp
	printer = xrx_219/duplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Duplex)

[xrx_219m]
	copy = lp
	printer = xrx_219/maual
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (ManualFeed)

[xrx_219s]
	copy = lp
	printer = xrx_219/simplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Simplex)

[xrx_220]
	copy = lp
	printer = xrx_220
	browseable = yes
	comment = Xerox DocuPrint N2125 PS

[xrx_220d]
	copy = lp
	printer = xrx_220/duplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Duplex)

[xrx_220m]
	copy = lp
	printer = xrx_220/manual
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (ManualFeed)

[xrx_220s]
	copy = lp
	printer = xrx_220/simplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Simplex)

[xrx_221]
	copy = lp
	printer = xrx_221
	browseable = yes
	comment = Xerox DocuPrint N2125 PS

[xrx_221d]
	copy = lp
	printer = xrx_221/duplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Duplex)

[xrx_221m]
	copy = lp
	printer = xrx_221/manual
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (ManualFeed)

[xrx_221s]
	copy = lp
	printer = xrx_221/simplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Simplex)

[xrx_222]
	copy = lp
	printer = xrx_222
	browseable = yes
	comment = Xerox DocuPrint N2125 PS

[xrx_222d]
	copy = lp
	printer = xrx_222/duplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Duplex)

[xrx_222m]
	copy = lp
	printer = xrx_222/manual
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (ManualFeed)

[xrx_222s]
	copy = lp
	printer = xrx_222/simplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Simplex)

[xrx_233c]
	copy = lp
	printer = xrx_233c
	browseable = yes
	comment = Tektronix Phaser 860DX by Xerox

[xrx_233cmt]
	copy = lp
	printer = xrx_233c/manual-transparency
	browseable = yes
	comment = Tektronix Phaser 860DX by Xerox (ManualTransparency)

[xrx_233cs]
	copy = lp
	printer = xrx_233c/simplex
	browseable = yes
	comment = Tektronix Phaser 860DX by Xerox (Simplex)

[xrx_233ct]
	copy = lp
	printer = xrx_233c/transparency
	browseable = yes
	comment = Tektronix Phaser 860DX by Xerox (Transparency)

[xrx_310]
	copy = lp
	printer = xrx_310
	browseable = yes
	comment = Xerox DocuPrint N2125 PS

[xrx_310d]
	copy = lp
	printer = xrx_310/duplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Duplex)

[xrx_310m]
	copy = lp
	printer = xrx_310/manual
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (ManualFeed)

[xrx_310s]
	copy = lp
	printer = xrx_310/simplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Simplex)

[xrx_323]
	copy = lp
	printer = xrx_323
	browseable = yes
	comment = Xerox DocuPrint N2125 PS

[xrx_323d]
	copy = lp
	printer = xrx_323/duplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Duplex)

[xrx_323m]
	copy = lp
	printer = xrx_323/manual
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (ManualFeed)

[xrx_323s]
	copy = lp
	printer = xrx_323/simplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Simplex)

[xrx_410]
	copy = lp
	printer = xrx_410
	browseable = yes
	comment = Xerox DocuPrint N2125 PS

[xrx_410d]
	copy = lp
	printer = xrx_410/duplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Duplex)

[xrx_410m]
	copy = lp
	printer = xrx_410/manual
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (ManualFeed)

[xrx_410s]
	copy = lp
	printer = xrx_410/simplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Simplex)

[xrx_418]
	copy = lp
	printer = xrx_418
	browseable = yes
	comment = Tektronix Phaser 860DX by Xerox

[xrx_418mt]
	copy = lp
	printer = xrx_418/manual-transparency
	browseable = yes
	comment = Tektronix Phaser 860DX by Xerox (ManualTransparency)

[xrx_418s]
	copy = lp
	printer = xrx_418/simplex
	browseable = yes
	comment = Tektronix Phaser 860DX by Xerox (Simplex)

[xrx_418t]
	copy = lp
	printer = xrx_418/transparency
	browseable = yes
	comment = Tektronix Phaser 860DX by Xerox (Transparency)

[xrx_431]
	copy = lp
	printer = xrx_431
	browseable = yes
	comment = Xerox Phaser 4400DT

[xrx_431d]
	copy = lp
	printer = xrx_431/duplex
	browseable = yes
	comment = Xerox Phaser 4400DT (Duplex)

[xrx_431m]
	copy = lp
	printer = xrx_431/manual
	browseable = yes
	comment = Xerox Phaser 4400DT (ManualFeed)

[xrx_431s]
	copy = lp
	printer = xrx_431/simplex
	browseable = yes
	comment = Xerox Phaser 4400DT (Simplex)

[xrx_440c]
	copy = lp
	printer = xrx_440c
	browseable = yes
	comment = Tektronix Phaser 860DX by Xerox

[xrx_440cmt]
	copy = lp
	printer = xrx_440c/manual-transparency
	browseable = yes
	comment = Tektronix Phaser 860DX by Xerox (ManualTransparency)

[xrx_440cs]
	copy = lp
	printer = xrx_440c/simplex
	browseable = yes
	comment = Tektronix Phaser 860DX by Xerox (Simplex)

[xrx_440ct]
	copy = lp
	printer = xrx_440c/transparency
	browseable = yes
	comment = Tektronix Phaser 860DX by Xerox (Transparency)

[xrx_arora]
	copy = lp
	printer = xrx_arora
	browseable = yes
	comment = Xerox Phaser 4400DT

[xrx_arorad]
	copy = lp
	printer = xrx_arora/duplex
	browseable = yes
	comment = Xerox Phaser 4400DT (Duplex)

[xrx_aroram]
	copy = lp
	printer = xrx_arora/manual
	browseable = yes
	comment = Xerox Phaser 4400DT (ManualFeed)

[xrx_aroras]
	copy = lp
	printer = xrx_arora/simplex
	browseable = yes
	comment = Xerox Phaser 4400DT (Simplex)

[xrx_fc_010]
	copy = lp
	printer = xrx_fc_010
	browseable = yes
	comment = Xerox DocuPrint N2125 PS

[xrx_fc_010d]
	copy = lp
	printer = xrx_fc_010/duplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Duplex)

[xrx_fc_010m]
	copy = lp
	printer = xrx_fc_010/manual
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (ManualFeed)

[xrx_fc_010s]
	copy = lp
	printer = xrx_fc_010/simplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Simplex)

[xrx_jmr_home]
	copy = lp
	printer = xrx_jmr_home
	browseable = yes
	comment = Xerox DocuPrint N2125 PS

[xrx_jmr_homed]
	copy = lp
	printer = xrx_jmr_home/duplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Duplex)

[xrx_jmr_homem]
	copy = lp
	printer = xrx_jmr_home/manual
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (ManualFeed)

[xrx_jmr_homes]
	copy = lp
	printer = xrx_jmr_home/simplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Simplex)

[xrx_rs]
	copy = lp
	printer = xrx_rs
	browseable = yes
	comment = Xerox DocuPrint N2125 PS

[xrx_rsd]
	copy = lp
	printer = xrx_rs/duplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Duplex)

[xrx_rsm]
	copy = lp
	printer = xrx_rs/manual
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (ManualFeed)

[xrx_rss]
	copy = lp
	printer = xrx_rs/simplex
	browseable = yes
	comment = Xerox DocuPrint N2125 PS (Simplex)



More information about the samba-technical mailing list