I'll cc this to the redhat-list some they can chime in if I miss anything...
At 01:42 PM 1/14/00 -0800, Hidong Kim wrote:
>Hi, Alan,
>
>Thanks for the tips. I found nothing relating to lpd in
>/var/log/messages except for messages showing lpd starting and
>stopping. I did click "restart lpd" in printtool. There's no
>difference between the /etc/printcap created by real root and su'ed root
>except for the header comments. What do you mean by checking if the
>print files are created in the spool directory? I notice that in my
>/var/spool/lpd, there are these two files:
>
>
>drwxr-xr-x 2 root lp 1024 Jan 14 12:55 lp
>-rwxrwxrwx 1 root root 5 Jan 14 12:54 lpd.lock
The files in .../lp are also important. Here's what I have on my 6.1 system:
[amead@hera ]$ ls -l /var/spool/lpd
total 2
drwxrwxr-x 2 root root 1024 Jan 10 14:10 lp/
-rw-r--r-- 1 root root 6 Dec 20 16:45 lpd.lock
[amead@hera ]$ ls -l /var/spool/lpd/lp
total 15
-rwxr-xr-x 1 root root 9443 Dec 20 16:38 filter*
-rwxr-xr-x 1 root root 192 Dec 20 16:38 general.cfg*
-rw-r--r-- 1 root root 25 Jan 10 14:10 lock
-rwxr-xr-x 1 root root 350 Dec 20 16:38 postscript.cfg*
-rw-rw-r-- 1 root root 26 Jan 10 14:10 status
-rwxr-xr-x 1 root root 146 Dec 20 16:38 textonly.cfg*
So I don't know if these differences are important, but my printer spool
dir is owed by root:root and permissions on the lock file differ. I could
imagine lpd being fairly finicky about permissions.
FWIW, here's my /etc/printcap set up to print to a networked HP laser printer:
# /etc/printcap
#
# Please don't edit this file directly unless you know what you are doing!
# Be warned that the control-panel printtool requires a very strict format!
# Look at the printcap(5) man page for more info.
#
# This file can be edited with the printtool in the control-panel.
##PRINTTOOL3## REMOTE POSTSCRIPT 1200x1200 letter {} PostScript Default {}
lp:\
:sd=/var/spool/lpd/lp:\
:mx#0:\
:sh:\
:rm=192.168.0.5:\
:rp=:\
:if=/var/spool/lpd/lp/filter:
-Alan
---
Alan D. Mead / Research Scientist / [EMAIL PROTECTED]
Institute for Personality and Ability Testing
1801 Woodfield Dr / Savoy IL 61874 USA
217-352-4739 (v) / 217-352-9674 (f)
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.