Okay, here's where I'm at:

I checked the permissions of the log directories and files and the files are 
all set to 0660.

LPR is setuid root [I used 'find / -perm -4000 -print' to check ]

I tried 'lpr -D 1 <textfile>' and got this:

bash$ lpr -D 1 dell_specs.txt    
2001-01-06-17:29:32.042 [EMAIL PROTECTED] [13397] lpr  Get_printer: original 
printer '<NULL>'
2001-01-06-17:29:32.042 [EMAIL PROTECTED] [13397] lpr  
Get_all_printcap_entries: starting
2001-01-06-17:29:32.043 [EMAIL PROTECTED] [13397] lpr  
Get_all_printcap_entries: starting
2001-01-06-17:29:32.043 [EMAIL PROTECTED] [13397] lpr  Select_pc_info: looking 
for 'all', depth 0
2001-01-06-17:29:32.043 [EMAIL PROTECTED] [13397] lpr  Select_pc_info: 
returning '<NULL>'
2001-01-06-17:29:32.043 [EMAIL PROTECTED] [13397] lpr  Dump_line_list: 
Get_all_printcap_entries- All_line_list - 0x8080a24, count 1, max 102, list 
0x8084270
2001-01-06-17:29:32.043 [EMAIL PROTECTED] [13397] lpr    [ 0] 0x8083390 ='lp'
2001-01-06-17:29:32.043 [EMAIL PROTECTED] [13397] lpr  lp: Get_printer: final 
printer 'lp'
2001-01-06-17:29:32.043 [EMAIL PROTECTED] [13397] lpr  lp: Fix_Rm_Rp_info: 
printer name 'lp'
2001-01-06-17:29:32.043 [EMAIL PROTECTED] [13397] lpr  lp: Select_pc_info: 
looking for 'lp', depth 0
2001-01-06-17:29:32.043 [EMAIL PROTECTED] [13397] lpr  lp: Select_pc_info: 
found name 'lp'
2001-01-06-17:29:32.043 [EMAIL PROTECTED] [13397] lpr  lp: Select_pc_info: 
returning 'lp'
2001-01-06-17:29:32.043 [EMAIL PROTECTED] [13397] lpr  lp: Fix_Rm_Rp_info: 
Printer 'lp', Queue 'lp', Lp '/dev/lp0', Rp 'lp', Rh 'localhost'
2001-01-06-17:29:32.043 [EMAIL PROTECTED] [13397] lpr  lp: Make_job: before 
checking format ''
2001-01-06-17:29:32.043 [EMAIL PROTECTED] [13397] lpr  lp: Make_job: after 
checking format 'f'
2001-01-06-17:29:32.043 [EMAIL PROTECTED] [13397] lpr  lp: Make_job: 'qq' flag 
0, queue 'lp', force_queuename '<NULL>'
2001-01-06-17:29:32.044 [EMAIL PROTECTED] [13397] lpr  lp: *** Job Send_job- 
starting *** - 0xbffff83c
2001-01-06-17:29:32.044 [EMAIL PROTECTED] [13397] lpr  lp:  info - 0xbffff83c, 
count 13, max 102, list 0x8084678
2001-01-06-17:29:32.044 [EMAIL PROTECTED] [13397] lpr  lp:   [ 0] 0x8083c08 
='bnrname=jcoppock'
2001-01-06-17:29:32.044 [EMAIL PROTECTED] [13397] lpr  lp:   [ 1] 0x8085638 
='[EMAIL PROTECTED]
Pjcoppock
Jdell_specs.txt
CA
Ljcoppock
[EMAIL PROTECTED]@shastanets+397
D2001-01-06-17:29:32.043
Qlp
Ndell_specs.txt
[EMAIL PROTECTED]
[EMAIL PROTECTED]
'
2001-01-06-17:29:32.044 [EMAIL PROTECTED] [13397] lpr  lp:   [ 2] 0x8083be0 
='class=A'
2001-01-06-17:29:32.044 [EMAIL PROTECTED] [13397] lpr  lp:   [ 3] 0x8083e30 
='copies=0x1'
2001-01-06-17:29:32.044 [EMAIL PROTECTED] [13397] lpr  lp:   [ 4] 0x80853d0 
='datalines=Ndell_specs.txt
[EMAIL PROTECTED]
[EMAIL PROTECTED]
'
2001-01-06-17:29:32.044 [EMAIL PROTECTED] [13397] lpr  lp:   [ 5] 0x80849f8 
='[EMAIL PROTECTED]'
2001-01-06-17:29:32.044 [EMAIL PROTECTED] [13397] lpr  lp:   [ 6] 0x8083c48 
='format=f'
2001-01-06-17:29:32.044 [EMAIL PROTECTED] [13397] lpr  lp:   [ 7] 0x8084a28 
='[EMAIL PROTECTED]'
2001-01-06-17:29:32.044 [EMAIL PROTECTED] [13397] lpr  lp:   [ 8] 0x80852e8 
='[EMAIL PROTECTED]@shastanets+397'
2001-01-06-17:29:32.044 [EMAIL PROTECTED] [13397] lpr  lp:   [ 9] 0x8083c28 
='jobname=dell_specs.txt'
2001-01-06-17:29:32.044 [EMAIL PROTECTED] [13397] lpr  lp:   [10] 0x8084b40 
='number=397'
2001-01-06-17:29:32.044 [EMAIL PROTECTED] [13397] lpr  lp:   [11] 0x8083bd0 
='priority=A'
2001-01-06-17:29:32.044 [EMAIL PROTECTED] [13397] lpr  lp:   [12] 0x80852b8 
='[EMAIL PROTECTED]'
2001-01-06-17:29:32.044 [EMAIL PROTECTED] [13397] lpr  lp:  jobfile - 
0xbffff848, count 8, max 101, list 0x8084de8
2001-01-06-17:29:32.044 [EMAIL PROTECTED] [13397] lpr  lp:   [ 0] 0x80849d8 
='[EMAIL PROTECTED]'
2001-01-06-17:29:32.044 [EMAIL PROTECTED] [13397] lpr  lp:   [ 1] 0x8084a68 
='Pjcoppock'
2001-01-06-17:29:32.044 [EMAIL PROTECTED] [13397] lpr  lp:   [ 2] 0x8084a50 
='Jdell_specs.txt'
2001-01-06-17:29:32.044 [EMAIL PROTECTED] [13397] lpr  lp:   [ 3] 0x80849c8 
='CA'
2001-01-06-17:29:32.044 [EMAIL PROTECTED] [13397] lpr  lp:   [ 4] 0x8083bf0 
='Ljcoppock'
2001-01-06-17:29:32.218 [EMAIL PROTECTED] [13397] lpr  lp:   [ 5] 0x8084b50 
='[EMAIL PROTECTED]@shastanets+397'
2001-01-06-17:29:32.218 [EMAIL PROTECTED] [13397] lpr  lp:   [ 6] 0x8084a88 
='D2001-01-06-17:29:32.043'
2001-01-06-17:29:32.218 [EMAIL PROTECTED] [13397] lpr  lp:   [ 7] 0x80849b8 
='Qlp'
2001-01-06-17:29:32.218 [EMAIL PROTECTED] [13397] lpr  lp:   datafiles - count 1
2001-01-06-17:29:32.218 [EMAIL PROTECTED] [13397] lpr  lp:    datafile[0] - 
0x8084a78, count 6, max 102, list 0x8085118
2001-01-06-17:29:32.218 [EMAIL PROTECTED] [13397] lpr  lp:   [ 0] 0x8084b00 
='copies=0x1'
2001-01-06-17:29:32.218 [EMAIL PROTECTED] [13397] lpr  lp:   [ 1] 0x8084b20 
='format=f'
2001-01-06-17:29:32.218 [EMAIL PROTECTED] [13397] lpr  lp:   [ 2] 0x8084ae8 
='N=dell_specs.txt'
2001-01-06-17:29:32.218 [EMAIL PROTECTED] [13397] lpr  lp:   [ 3] 0x8084aa8 
='openname=dell_specs.txt'
2001-01-06-17:29:32.218 [EMAIL PROTECTED] [13397] lpr  lp:   [ 4] 0x8084b10 
='size=11200'
2001-01-06-17:29:32.218 [EMAIL PROTECTED] [13397] lpr  lp:   [ 5] 0x8085528 
='[EMAIL PROTECTED]'
2001-01-06-17:29:32.218 [EMAIL PROTECTED] [13397] lpr  lp:  destination - 
0xbffff860, count 0, max 0, list 0x0
2001-01-06-17:29:32.218 [EMAIL PROTECTED] [13397] lpr  lp: *** end ***
2001-01-06-17:29:32.218 [EMAIL PROTECTED] [13397] lpr  lp: Fix_auth: Auth_DYN 
'none', Auth_filter_DYN '<NULL>', Auth_id_DYN 'none', Auth_sender_id 'jcoppock'
2001-01-06-17:29:32.218 [EMAIL PROTECTED] [13397] lpr  lp: Fix_auth: sending 1, 
Is_server 0, Auth_receive_filter_DYN '<NULL>'
2001-01-06-17:29:32.218 [EMAIL PROTECTED] [13397] lpr  lp: Fix_auth: 
Kerberos_dest_id_DYN '<NULL>'
2001-01-06-17:29:32.218 [EMAIL PROTECTED] [13397] lpr  lp: Fix_auth: bindto 
'no', '0.0.0.0'
2001-01-06-17:29:32.225 [EMAIL PROTECTED] [13397] lpr  lp: Get_max_fd: 
getrlimit returns 1024
2001-01-06-17:29:32.225 [EMAIL PROTECTED] [13397] lpr  lp: Get_max_fd: 
returning 1024
2001-01-06-17:29:32.226 [EMAIL PROTECTED] [13397] lpr  lp: cleanup: done, 
exit(0)

It looks to me like lpr if finding lp and subsequently /dev/lp0 okay.  It also 
appears that the job is being sent and cleaned up.  I don't see a filter being 
used, but I'm not sure.

A few other notes:
- I'm using lprng and I've removed and re-installed it.
- I've set the permissions on the /dev/lp0 back to 0660.
- I REALLY appreciate all the help I'm getting!

thanks,
jc

On Sat, Jan 06, 2001 at 01:08:58PM +0000, Jo Geraerts wrote:
> Hello,
> 
> 
> On Fri, 5 Jan 2001, Jeffrey S. Coppock wrote:
> 
> > I tried the echo redirect below and was told 'permission denied', so I
> > tried it as root and it worked, the printer printed the message.
> > I chmod 0666 /dev/lp0 and it worked without su.
> 
> So it isn't the kernel config that's wrong.
> 
> > The lpd.conf file has all options commented out.
> 
> Same here.
> 
> > ACCEPT SERVICE=C SERVER REMOTEUSER=root
> > ACCEPT SERVICE=C LPC=lpd,status,printcap
> > REJECT SERVICE=C
> > ACCEPT SERVICE=M SAMEHOST SAMEUSER
> > ACCEPT SERVICE=M SERVER REMOTEUSER=root
> > REJECT SERVICE=M
> > DEFAULT ACCEPT
> 
> looks fine to me too.
> 
> > lp|dj952c|HP Deskjet 952C:\
> >     :lp=/dev/lp0:sd=/var/spool/lpd/dj952c:\
> >     :sh:pw#80:pl#66:px#1440:mx#0:\
> >     :if=/etc/magicfilter/dj690c-best-filter:\
> >     :af=/var/log/lp-acct:lf=/var/log/lp-errs:
> 
> looks ok too. 
> 
> > Also, nothing is being logged and nothing shows up in the queue (lpq).
> 
> No errors in /var/log/lp-errs of in /var/log/lp-acct?
> 
> Check the file permissions for the spool directory's and the file's that
> are in these directory's. Also make sure that lpr is setuid-root.
> 
> You can also use the -D switch to turn debuggin on. Maybe it gives you
> more usefull information 'bout what's going wrong.
> 
> Greetz,
> Jo

-- 

**********************************
Jeff Coppock
Nortel Networks IP Services
email: [EMAIL PROTECTED]
email: [EMAIL PROTECTED]
(408) 565-3848  :Office  ESN: 655
(510) 703-5910  :Mobile
(925) 292-1156  :Home Office

Reply via email to