[sf-lug] lpadmin --> forbidden

Jesse Zbikowski embeddedlinuxguy at gmail.com
Mon Oct 27 16:30:26 PDT 2008


On Mon, Oct 27, 2008 at 4:00 PM, Alex Kleider <a_kleider at yahoo.com> wrote:
> alex at lildell:~$ ls -l /dev/lp0
> crw-rw---- 1 root lp 6, 0 2008-10-25 12:23 /dev/lp0

Same as my box so I guess that's OK.

> alex at lildell:~$ sudo strace -f lpadmin -p OfficeJet -v parallel:/dev/lp0 -m OfficeJet.ppd > trace 2          >&1

Maybe you should pastebin this.  Look for stuff that seems to be
failing toward the end (e.g. EPERM when you try to open a device).

> alex at lildell:~$ dmesg | tail
> [  725.311830]  [<f8be1240>] pp_irq+0x0/0x50 [ppdev]
> [  725.311847]  [<c019df88>] do_ioctl+0x78/0x90
> [  725.311858]  [<c019e1ce>] vfs_ioctl+0x22e/0x2b0
> [  725.311863]  [<c019000e>] do_sys_open+0xbe/0xe0
> [  725.311874]  [<c019e2a6>] sys_ioctl+0x56/0x70
> [  725.311882]  [<c01043b2>] sysenter_past_esp+0x6b/0xa9
> [  725.311904]  =======================
> [  725.311907] ppdev0: registered pardevice
> [  726.072620] ppdev0: unregistered pardevice
> [  735.604043] ppdev0: unregistered pardevice

This looks like a kernel oops which is bad.  Perhaps you should try

dmesg | tail -n 100

to see the rest of this error.

Sorry I really know nothing specific about lpadmin or parallel
ports... just general debugging advice.  PS Is this a parallel (as
opposed to USB) printer?  Otherwise why would it be on lp0?




More information about the sf-lug mailing list