From: "Purple Shirt"
Date: Sun, 17 Dec 2000 16:14:57
Message-ID:
Subject: printing
Another try to get an answer.
Got Linux box with lprng and samba. Printing from Linux box works fine.
Win98 box can share drive fine but has trouble printing. When I print the
file gets transferred to /var/spool/samba (permissions 1777) but is then not
printed and also not deleted as was intended.
Here is my printcap and smb.conf
murf:cm=Network Printer smurf:\
:lp=smurf.mydomain.com%9100:\
:sd=/var/spool/lpd/%P:\
:ifhp=model=hp2100,status@:\
:sh:\
:filter=/usr/local/libexec/filters/ifhp:\
:mx#0
<p>[global]
workgroup = SHADOWWARRIOR
guest account = nobody
keep alive = 30
os level = 2
kernel oplocks = false
security = user
encrypt passwords = yes
log file = /var/log/samba-log.%m
lock directory = /var/lock/samba
hosts allow = 192.168.1.
interfaces = 192.168.1.1/255.255.255.0
load printers = yes
[network-drive]
path = /winmount
comment = Network Drive
create mode = 644
writeable = yes
guest ok = yes
[printers]
path = /var/spool/samba
print ok = yes
printing = lprng
printable = yes
printcap file = /etc/printcap
guest ok = yes
public = yes
print command = /usr/bin/lpr -U%U@%M -P%p -r %s
lpq command = /usr/bin/lpq -U%U@%M -P%p
lprm command = /usr/bin/lprm -U%U@%M -P%p %j
lppause command = /usr/sbin/lpc -U%U@%M hold %p %j
lpresume command = /usr/sbin/lpc -U%U@%M release %p %j
queuepause command = /usr/sbin/lpc -U%U@%M -P%p stop
queueresume command = /usr/sbin/lpc -U%U@%M -P%p start
[smurf]
path = /var/spool/samba
guest ok = yes
printable = yes
print ok = yes
public = yes
printing = lprng
printer name = smurf
print command = /usr/bin/lpr -U%U@%M -P%p -r %s
lpq command = /usr/bin/lpq -U%U@%M -P%p
lprm command = /usr/bin/lprm -U%U@%M -P%p %j
lppause command = /usr/sbin/lpc -U%U@%M hold %p %j
lpresume command = /usr/sbin/lpc -U%U@%M release %p %j
queuepause command = /usr/sbin/lpc -U%U@%M -P%p stop
queueresume command = /usr/sbin/lpc -U%U@%M -P%p start
<p>/var/log/log.smb:
[2000/12/16 23:15:51, 1] smbd/server.c:main(641)
smbd version 2.0.7 started.
Copyright Andrew Tridgell 1992-1998
[2000/12/16 23:15:51, 0] param/loadparm.c:map_parameter(1681)
Unknown parameter encountered: "printcap file"
[2000/12/16 23:15:51, 0] param/loadparm.c:lp_do_parameter(2223)
Ignoring unknown parameter "printcap file"
/var/log/samba-log.lab2:
[2000/12/16 23:16:53, 1] smbd/service.c:make_connection(550)
lab2 (192.168.1.3) connect to service printers as user nobody (uid=65534,
gid=65534) (pid 18223)
[2000/12/16 23:19:36, 1] smbd/service.c:close_cnum(583)
lab2 (192.168.1.3) closed connection to service printers
[2000/12/16 23:23:25, 1] smbd/service.c:make_connection(550)
lab2 (192.168.1.3) connect to service printers as user nobody (uid=65534,
gid=65534) (pid 18234)
[2000/12/16 23:26:30, 1] smbd/service.c:close_cnum(583)
lab2 (192.168.1.3) closed connection to service printers
<p>mk
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com