[Samba] problem adding printer driver
John Helms
John.Helms at photomask.com
Mon Jan 6 20:19:01 GMT 2003
Hi,
I am attempting to configure our samba server for print
driver download. The server itself was installed from
RedHat 7.3 and has been configured to used cups instead
of lpd/lprng. After studying the documentation on cups/samba,
I decided to try the Adobe driver install. I used the cupsaddsmb
program to perform the driver install, which works fine
except for the "rpcclient adddriver" command:
[root at rrux03 samba]# cupsaddsmb -v -U root rr_ptr_is03
Password for root required to access localhost via SAMBA:
Running command: smbclient //localhost/print\$ -N -U'root%password' -c
'mkdir W32X86;put /var/spool/cups/tmp/3e19d3146d129
W32X86/rr_ptr_is03.PPD;put /usr/share/cups/drivers/ADOBEPS5.DLL
W32X86/ADOBEPS5.DLL;put /usr/share/cups/drivers/ADOBEPSU.DLL
W32X86/ADOBEPSU.DLL;put /usr/share/cups/drivers/ADOBEPSU.HLP
W32X86/ADOBEPSU.HLP'
added interface ip=208.222.129.103 bcast=208.222.131.255 nmask=255.255.252.0
added interface ip=208.222.129.91 bcast=208.222.131.255 nmask=255.255.252.0
Domain=[RRDPI] OS=[Unix] Server=[Samba 2.2.3a]
putting file /var/spool/cups/tmp/3e19d3146d129 as
\W32X86/rr_ptr_is03.PPD (1528.9 kb/s) (average 1528.9 kb/s)
putting file /usr/share/cups/drivers/ADOBEPS5.DLL as
\W32X86/ADOBEPS5.DLL (7979.9 kb/s) (average 6220.5 kb/s)
putting file /usr/share/cups/drivers/ADOBEPSU.DLL as
\W32X86/ADOBEPSU.DLL (7361.1 kb/s) (average 6436.6 kb/s)
putting file /usr/share/cups/drivers/ADOBEPSU.HLP as
\W32X86/ADOBEPSU.HLP (3603.6 kb/s) (average 6295.0 kb/s)
Running command: smbclient //localhost/print\$ -N -U'root%password' -c
'mkdir WIN40;put /var/spool/cups/tmp/3e19d3146d129
WIN40/rr_ptr_is03.PPD;put /usr/share/cups/drivers/ADFONTS.MFM
WIN40/ADFONTS.MFM;put /usr/share/cups/drivers/ADOBEPS4.DRV
WIN40/ADOBEPS4.DRV;put /usr/share/cups/drivers/ADOBEPS4.HLP
WIN40/ADOBEPS4.HLP;put /usr/share/cups/drivers/DEFPRTR2.PPD
WIN40/DEFPRTR2.PPD;put /usr/share/cups/drivers/ICONLIB.DLL
WIN40/ICONLIB.DLL;put /usr/share/cups/drivers/PSMON.DLL WIN40/PSMON.DLL;'
added interface ip=208.222.129.103 bcast=208.222.131.255 nmask=255.255.252.0
added interface ip=208.222.129.91 bcast=208.222.131.255 nmask=255.255.252.0
Domain=[RRDPI] OS=[Unix] Server=[Samba 2.2.3a]
putting file /var/spool/cups/tmp/3e19d3146d129 as \WIN40/rr_ptr_is03.PPD
(5351.0 kb/s) (average 5351.1 kb/s)
putting file /usr/share/cups/drivers/ADFONTS.MFM as \WIN40/ADFONTS.MFM
(8146.1 kb/s) (average 7922.5 kb/s)
putting file /usr/share/cups/drivers/ADOBEPS4.DRV as \WIN40/ADOBEPS4.DRV
(8380.6 kb/s) (average 8228.6 kb/s)
putting file /usr/share/cups/drivers/ADOBEPS4.HLP as \WIN40/ADOBEPS4.HLP
(7674.2 kb/s) (average 8173.4 kb/s)
putting file /usr/share/cups/drivers/DEFPRTR2.PPD as \WIN40/DEFPRTR2.PPD
(3293.9 kb/s) (average 8096.8 kb/s)
putting file /usr/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL
(6785.8 kb/s) (average 8014.9 kb/s)
putting file /usr/share/cups/drivers/PSMON.DLL as \WIN40/PSMON.DLL
(6222.2 kb/s) (average 7957.5 kb/s)
Running command: rpcclient localhost -N -U'root%password' -c 'adddriver
"Windows NT x86"
"rr_ptr_is03:ADOBEPS5.DLL:rr_ptr_is03.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL"'
session setup ok
Domain=[RRDPI] OS=[Unix] Server=[Samba 2.2.3a]
cmd = adddriver "Windows NT x86"
"rr_ptr_is03:ADOBEPS5.DLL:rr_ptr_is03.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL"
adddriver "Windows NT x86"
"rr_ptr_is03:ADOBEPS5.DLL:rr_ptr_is03.PPD:ADOBEPSU.DLL:ADOBEPSU.HLP:NULL:RAW:NULL"
result was NT_STATUS_INVALID_LOCK_SEQUENCE
Running command: rpcclient localhost -N -U'root%password' -c 'addprinter
rr_ptr_is03 rr_ptr_is03 "rr_ptr_is03" ""'
session setup ok
Domain=[RRDPI] OS=[Unix] Server=[Samba 2.2.3a]
cmd = addprinter rr_ptr_is03 rr_ptr_is03 "rr_ptr_is03" ""
addprinter rr_ptr_is03 rr_ptr_is03 "rr_ptr_is03" ""
result was NT code 0xc000070a
Running command: rpcclient localhost -N -U'root%password' -c 'adddriver
"Windows 4.0"
"rr_ptr_is03:ADOBEPS4.DRV:rr_ptr_is03.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL"'
session setup ok
Domain=[RRDPI] OS=[Unix] Server=[Samba 2.2.3a]
cmd = adddriver "Windows 4.0"
"rr_ptr_is03:ADOBEPS4.DRV:rr_ptr_is03.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL"
adddriver "Windows 4.0"
"rr_ptr_is03:ADOBEPS4.DRV:rr_ptr_is03.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL"
result was NT_STATUS_INVALID_LOCK_SEQUENCE
I'm not sure exactly what the problem is, but the print que
was already in existence on the server because it is in use
as a *nix printer server. Here is my smb.conf file:
[root at rrux03 samba]# cd /etc/samba
[root at rrux03 samba]# cat smb.conf
[global]
workgroup = rrdpi
security = share
#password server = *
encrypt passwords = yes
#interfaces = 192.168.12.2/24 192.168.13.2/24
local master = no
domain master = no
preferred master = no
os level = 0
wins support = no
domain logons = no
wins server = 208.222.129.10
netbios name = rrux03
printcap name = cups
printing = cups
load printers = yes
server string = RR Print Server
map to guest = bad user
[printers]
comment = Printers
path = /var/spool/samba
browseable = no
guest ok = yes
guest only = yes
public = yes
writable = no
printable = yes
printer admin = root, at ntadmin
[print$]
comment = Printer Drivers
path = /sftw/samba/printers
guest ok = yes
;guest only = yes
browseable = yes
read only = yes
write list = root,helmsjw, at ntadmin
Any hints/help would be greatly appreciated.
We are reducing our NT server count due to
licensing issues and I hope to switch some of
the services over to linux.
Thanks,
John Helms
Unix/Linux Admin
DuPont Photomasks, Inc.
More information about the samba
mailing list