Damn why do I always have to answer my own questions? =) Well I suspected it and it was probably true. I uninstalled SuSE's lprng.rpm because I felt it was compiled for 2.2.18 and I was using 2.4.2. I pulled down the source from astart.com and did a ./configure --disable-gdbm make make install then moved my printcap to /usr/local/etc adjusted the file paths in /etc/smb.conf and /etc/smb.conf.nobody to /usr/local/ instead of /usr and printing runs without a hickup. Anybody who has problem with printing under 2.4.2 via Samba might want to try to compile from source to fix problems. It certainely worked for me. mk
From: "Purple Shirt"
To: suse-linux-e@suse.com Subject: [SLE] 7.1 windows client printing Date: Mon, 02 Apr 2001 13:34:59 Hello,
I just moved from SuSE 7.0 to SuSE 7.1 by reinstalling.
I use HP 2100TN JetDirect printer. I use kernel-2.4.2, LPRng-3.6.26, ifhp-3.4.4, Samba-2.0.7
Printing from Linux server works just as before. Printing from Windows clients has problems. I set it up just like before but any print job from Windows takes its while and then spits out junk: -------------------------- ERROR: timeout OFFENDING COMMAND: timeout
STACK: --------------------------
Printing from clients is basically impossible. Here are important directory permissions:
/var/spool: drwxr-xr-x 3 lp lp 56 Mar 31 14:00 lpd drwxrwxrwt 2 root root 35 Apr 1 19:04 samba
/var/spool/lpd: drwx------ 2 lp lp 332 Apr 1 19:26 smurf
/var/spool/lpd/smurf: -rw------- 1 lp lp 8986 Apr 1 19:26 acct -rw------- 1 lp lp 270 Apr 1 19:04 cfA307mail.mydomain.com -rw------- 1 lp lp 0 Mar 31 14:06 control.smurf -rw------- 1 lp lp 103522 Apr 1 19:04 dfA307mail.mydomain.com -rw------- 1 lp lp 557 Apr 1 19:26 hfA307 -rw------- 1 lp lp 0 Mar 31 14:06 log -rw------- 1 lp lp 19651 Apr 1 19:04 lpq.0 -rw------- 1 lp lp 6 Apr 1 19:26 smurf -rw------- 1 lp lp 9819 Apr 1 19:26 status -rw------- 1 lp lp 10288 Apr 1 19:26 status.smurf -rw------- 1 lp lp 6 Apr 1 19:26 unspooler.smurf
Samba runs as root.
here is my simple /etc/printcap:
smurf: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
Here is my /etc/smb.conf:
[global] workgroup = SHADOWWARRIOR server string = Samba %v on %L domain logons = yes
wins support = yes name resolve order = wins lmhosts hosts bcast
security = user
os level = 34 local master = yes preferred master = yes domain master = yes socket options = TCP_NODELAY
time server = yes logon script = %U.bat
keep alive = 30 guest account = nobody kernel oplocks = false
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
encrypt passwords = yes smb passwd file = /etc/smbpasswd unix password sync = True passwd program = /usr/bin/passwd %u passwd chat = *new*password* %n\n *new*password* %n\n *changed* passwd chat debug = True update encrypted = yes
browseable = no config file = /etc/smb.conf.%U
[netlogon] comment = The domain logon service path = /etc/samba/logon public = no writeable = no browseable = no
[printers] path = /var/spool/samba print ok = yes printing = lprng printable = yes printcap name = /etc/printcap guest ok = yes public = yes
[smurf] path = /var/spool/samba print ok = yes printing = lprng printable = yes guest ok = yes public = yes print command = /usr/bin/lpr -P%p -r %s lpq command = /usr/bin/lpq -P%p lprm command = /usr/bin/lprm -P%p %j lppause command = /usr/sbin/lpc hold %p %j lpresume command = /usr/sbin/lpc release %p %j queuepause command = /usr/sbin/lpc -P%p stop queueresume command = /usr/sbin/lpc -P%p start
file /etc/smb.conf.nobody looks same. Users log on as nobody and file sharing works. Printing is the problem.
I got jetdirect interface and client network card interfaces defined in /etc/hosts.
Thanks,
mk _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com