Hola folks,
I'm experiencing a problem trying to get drivers to upload/download properly
with Samba 2.2.5 and CUPS. I've read the various HOWTOs and have managed to
get drivers to upload, except that it errors out, saying that it was unable
to apply the changes.
The driver files do successfully upload to the proper directory on the Samba
server.
If I try to do things by hand:
rpcclient print -U Administrator -c "enumdrivers"
Password:
cmd = enumdrivers
[Windows NT x86]
Printer Driver Info 1:
Driver Name: [HP LaserJet 5Si]
rpcclient print -U Administrator -c "enumprinters"
Password:
cmd = enumprinters
flags:[0x800000]
name:[\\print\P38HP5SI]
description:[\\print\P38HP5SI,,HP 5Si Laserjet (Tech Team)]
comment:[HP 5Si Laserjet (Tech Team)]
rpcclient print -U Administrator -c "setdriver P38HP5SI \"HP
Laserjet 5Si\""
Password:
cmd = setdriver P38HP5SI "HP LaserJet 5Si"
result was NT_STATUS_UNSUCCESSFUL
rpcclient print -U root -c "setdriver P38HP5SI \"HP LaserJet
5Si\""
Password:
cmd = setdriver P38HP5SI "HP LaserJet 5Si"
SetPrinter call failed!
result was NT_STATUS_UNSUCCESSFUL
My smb.conf:
Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2002/08/06 08:25:04
# Global parameters
[global]
workgroup = PEAK
netbios name = SCORP003
netbios aliases = PRINT
server string = Samba Server %v
security = DOMAIN
encrypt passwords = Yes
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = cups
addprinter command = cupsaddsmb
preferred master = False
local master = No
domain master = False
dns proxy = No
wins server = 192.188.103.11
winbind uid = 10000-20000
winbind gid = 10000-20000
admin users = "PEAK\sorisioce"
printer admin = @"PEAK\PEAK Technology"
printing = cups
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side
printer drivers.
lpq command = lpstat -o %p
lprm command = cancel %p-%j
browseable = No
printer admin = root
[print$]
path = /var/lib/samba/printers
browseable = yes
guest ok = yes
read only = yes
write list = @adm root "PEAK\sorisioce"
[backup]
path = /mnt/share/samba/backup
read only = No
[images]
comment = ISO Disc Images
path = /mnt/share/samba/images
valid users = @"PEAK\PEAK Technology"
Any suggestions?
Thanks,
Chris
-------------- next part --------------
HTML attachment scrubbed and removed
It looks like it may be a permissions issue, but I can't figure out where.
Help? This is part of a -d 100 dump of the rpcclient command as recommended
by Mark.
rpc_check_hdr: rdata->data_size = 48
000000 smb_io_rpc_hdr rpc_hdr
0000 major : 05
0001 minor : 00
0002 pkt_type : 02
0003 flags : 03
0004 pack_type0: 10
0005 pack_type1: 00
0006 pack_type2: 00
0007 pack_type3: 00
0008 frag_len : 0030
000a auth_len : 0000
000c call_id : 00000006
000010 smb_io_rpc_hdr_resp rpc_hdr_resp
0010 alloc_hint: 00000018
0014 context_id: 0000
0016 cancel_ct : 00
0017 reserved : 00
rpc_api_pipe: len left: 0 smbtrans read: 48
rpc_api_pipe: fragment first and last both set
000018 spoolss_io_r_open_printer_ex
000018 smb_io_pol_hnd printer handle
0018 data1: 00000000
001c data2: 00000002
0020 data3: 0000
0022 data4: 0000
0024 data5: 94 09 50 3d 0b 22 00 00
002c status code: WERR_ACCESS_DENIED
write_socket(7,45)
write_socket(7,45) wrote 45
got smb length of 35
size=35
smb_com=0x4
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=1
smb_pid=8714
smb_uid=100
smb_mid=1
smt_wct=0
smb_bcc=0
result was NT_STATUS_UNSUCCESSFUL
-------------- next part --------------
HTML attachment scrubbed and removed
Here follows a log snippet of my attempt to perform:
rpcclient print -d 100 -U root -c "setdriver P38HP5SI \"HP Laserjet
5Si\""
Can anyone help?
I would've posted the full text, but it's 78k.
Samba 2.2.5, Gentoo 1.2.
000018 spoolss_io_r_getprinter
000018 spoolss_io_buffer
0018 ptr: 00000000
001c needed: 000001ac
0020 status: WERR_INSUFFICIENT_BUFFER
-------------- next part --------------
HTML attachment scrubbed and removed
Gerald,
Thanks for responding. I must have missed it during the chaos of the week.
I've managed to adjust for this problem and now have my account associated
with root. I hope you can help with my current problem, as it is driving me
batty.
In short: while I can upload printer drivers, I cannot associate the
printer with them. If I attempt it via NT properies, it errors out with
"Unable to change to the specified driver, original settings will be
restored" after uploading the drivers.
If I try it via the command line (rpcclient on the Samba server) I get a
debug looking something like this:
(cmd: rpcclient -d 10 ssupp001 -U root -c "setdriver P38HP5SI \"HP
LaserJet
5Si\"")
000018 spoolss_io_r_open_printer_ex
000018 smb_io_pol_hnd printer handle
0018 data1: 00000000
001c data2: 00000002
0020 data3: 0000
0022 data4: 0000
0024 data5: 94 09 50 3d 0b 22 00 00
002c status code: WERR_ACCESS_DENIED
or
000000 smb_io_rpc_hdr rpc_hdr
0000 major : 05
0001 minor : 00
0002 pkt_type : 02
0003 flags : 03
0004 pack_type0: 10
0005 pack_type1: 00
0006 pack_type2: 00
0007 pack_type3: 00
0008 frag_len : 001c
000a auth_len : 0000
000c call_id : 00000009
000010 smb_io_rpc_hdr_resp rpc_hdr_resp
0010 alloc_hint: 00000004
0014 context_id: 0000
0016 cancel_ct : 00
0017 reserved : 00
rpc_api_pipe: len left: 0 smbtrans read: 28
rpc_api_pipe: fragment first and last both set
000018 spoolss_io_r_setprinter
0018 status: WERR_ACCESS_DENIED
SetPrinter call failed!
I greatly appreciate any help; this is driving me batty. It /appears/ all
permissions are set correctly, but perhaps something is not documented or I
am too fuzzy to see it clearly?
Thanks,
Chris
-----Original Message-----
From: Gerald Carter [mailto:jerry@samba.org]
Sent: Tuesday, August 06, 2002 10:16 PM
To: Sorisio,Chris
Cc: 'samba@lists.samba.org'
Subject: RE: [Samba] Samba Print Driver Errors
On Tue, 6 Aug 2002, Sorisio,Chris wrote:
> Here follows a log snippet of my attempt to perform:
>
> rpcclient print -d 100 -U root -c "setdriver P38HP5SI \"HP
Laserjet 5Si\""
>
> Can anyone help?
>
> I would've posted the full text, but it's 78k.
>
> Samba 2.2.5, Gentoo 1.2.
>
> 000018 spoolss_io_r_getprinter
> 000018 spoolss_io_buffer
> 0018 ptr: 00000000
> 001c needed: 000001ac
> 0020 status: WERR_INSUFFICIENT_BUFFER
This is normal. The ACCESS_DENIED ni your previous mail
means that you tried to open the printer for admin access
but were not logged onto the Samba box as a "printer admin" or
as root.
cheers, jerry
---------------------------------------------------------------------
Hewlett-Packard http://www.hp.com
SAMBA Team http://www.samba.org
-- http://www.plainjoe.org
"Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN
0-672-32269-2
--"I never saved anything for the swim back." Ethan Hawk in Gattaca--
-------------- next part --------------
HTML attachment scrubbed and removed