[sf-lug] lpadmin --> forbidden

Alex Kleider a_kleider at yahoo.com
Mon Oct 27 16:00:17 PDT 2008


Here's the output you asked about:


alex at lildell:~$ ls -l /dev/lp0
crw-rw---- 1 root lp 6, 0 2008-10-25 12:23 /dev/lp0
alex at lildell:~$ sudo strace -f lpadmin -p OfficeJet -v parallel:/dev/lp0 -m OfficeJet.ppd > trace 2          >&1
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
alex at lildell:~$

the strace command yielded in excess of 500 lines!
I have it captured if you think it'll be of use

by the way: I added the relevant users to lp group without any benefit.


a_kleider at yahoo.com


--- On Mon, 10/27/08, Jesse Zbikowski <embeddedlinuxguy at gmail.com> wrote:

> From: Jesse Zbikowski <embeddedlinuxguy at gmail.com>
> Subject: Re: [sf-lug] lpadmin --> forbidden
> To: a_kleider at yahoo.com
> Cc: "John Lowry" <johnlowry at gmail.com>, "Linux userGroup" <sf-lug at linuxmafia.com>
> Date: Monday, October 27, 2008, 2:20 PM
> I am not an expert on lpadmin but it might help to see the
> output of
> these two commands:
> 
> ls -l /dev/lp0
> strace -f lpadmin -p OfficeJet -v parallel:/dev/lp0 -m
> OfficeJet.ppd
> 
> Also after the error see if there is anything interesting
> in
> 
> dmesg |tail


      




More information about the sf-lug mailing list