lp: no permission to show status ???
Hi,
I have set up two linux boxes with debian 2.1 and kernel 2.2.10
The first box (named gateway) handle print service on a LasetJet 6MP
connected directly.
The second box (named server) is the one on which I actually work.
I want to print from server to gateway, but nothing works!
On gateway, /etc/printcap is like that:
gateway:/# cat /etc/printcap
#
# Copyright (c) 1983 Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that this notice is preserved and that due credit is given
# to the University of California at Berkeley. The name of the
University
# may not be used to endorse or promote products derived from this
# software without specific prior written permission. This software
# is provided ``as is'' without express or implied warranty.
#
# @(#)etc.printcap 5.2 (Berkeley) 5/5/88
#
# This file was generated by /usr/sbin/magicfilterconfig.
#
lp|HP Laserjet 6MP
:lp=/dev/lp0:\
:sd=/var/spool/lpd/hplj6mp:\
:af=/var/log/lp-acct:\
:lf=/var/log/lp-errs:
:pl#66:\
:pw#80:\
:pc#150:\
:mx#0:\
:force_localhost:
:sh:\
gateway:/#
And on server, /etc/printcap is:
server:/# cat /etc/printcap
# /etc/printcap: printer capability database. See printcap(5).
# You can use the filter entries df, tf, cf, gf etc. for
# your own filters. See the printcap(5) manual page for further
# details.
lp|Remote printer on gateway:\
:lp=/dev/null:\
:rm=192.168.1.254:\
:rp=lp:\
:sd=/var/spool/lpd/remote:\
:mx#0:\
:sh:
server:/#
Now on gateway, everything works fine.
gateway:/# lpc status all
Printer Printing Spooling Jobs Server Slave Redirect
Status/Debug
lp@gateway enabled enabled 0 none none
gateway:/# lpq -a
Printer: lp@gateway 'HP Laserjet 6MP'
Queue: no printable jobs in queue
Status: server finished at 17:32:10
gateway:/#
But on server, if I try the command lpq, I have the following message:
server:/# lpc status all
Printer Printing Spooling Jobs Server Slave Redirect
Status/Debug
lp@server enabled enabled 0 none none
server:/# lpq -a
Printer: lp@server (dest lp@192.168.1.254) 'Remote printer on gateway'
Queue: no printable jobs in queue
server:/# lpq
lp: no permission to show status
server:/#
I don't understand what's wrong and there is nothing in the HOWTO's.
Can someone help me?
Thanks
Greeting, Florian
--
---
Florian Salamin
http://mypage.bluewin.ch/a-z/Salamin/index.html
mailto:florian.salamin@bluewin.ch
Reply to: