Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: How do I grant permission for lp0?

  1. #1
    Join Date
    Aug 2008
    Location
    Morristown, TN
    Beans
    15
    Distro
    Ubuntu 8.04 Hardy Heron

    How do I grant permission for lp0?

    This problem has been around a while, but I can not find a solution that I can do or works. I have defined my printer, recognized by the cups, When I print the print test page a print job is completed, but there is a message in /var/log/messages as follows:

    Aug 16 15:29:01 whitt-desktop kernel: [30445.975135] audit(1218914941.304:5): type=1503 operation="inode_permission" requested_mask="::rw" denied_mask="::rw" name="/dev/tty" pid=14127 profile="/usr/sbin/cupsd" namespace="default"

    I found this:

    5. 3. Check device file permissions

    Device files for printers (like /dev/lp0, /dev/usb/lp0, ...) must be readable and writable for the user "root" and the group "sys".
    in:
    http://www.linuxprinting.org/~till/p...tut.html#1_1_1

    Nice to know, but there was no suggestion of a method to use to do this or even a suggestion of how to fix it.

    I have Googled and Search documentation until I am half blind.

    I do not understand Commands and don't turst things that I don't understand.

    I have had this on my back for over a month. If you know how to grant permission for /dev/lp0 I would be ever grateful.

  2. #2
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: How do I grant permission for lp0?

    Add your user to the lp group.
    Open a terminal and run the following command:
    Code:
    sudo adduser your-user-name-here lp
    then log out and log in(or reboot).
    Last edited by sisco311; August 17th, 2008 at 11:16 AM.

  3. #3
    Join Date
    Aug 2008
    Location
    Morristown, TN
    Beans
    15
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How do I grant permission for lp0?

    OK, I did that, but I get the same message.

    whitt@whitt-desktop:~$ sudo adduser lp whitt
    [sudo] password for whitt:
    Adding user `lp' to group `whitt' ...
    Adding user lp to group whitt
    Done.
    whitt@whitt-desktop:~$

    Result message:

    Aug 16 16:32:34 whitt-desktop kernel: [34252.059447] audit(1218918754.393:6): type=1503 operation="inode_permission" requested_mask="::rw" denied_mask="::rw" name="/dev/tty" pid=14996 profile="/usr/sbin/cupsd" namespace="default"

    Thanks. It didn't solve the problem, but your suggestion was very clear.

  4. #4
    Join Date
    Aug 2008
    Beans
    188
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: How do I grant permission for lp0?

    You have to reboot (or re-login) before that change takes effect.

    edit: Sorry, it was already said before, didn't notice that.

  5. #5
    Join Date
    Aug 2008
    Location
    Morristown, TN
    Beans
    15
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How do I grant permission for lp0?

    Rebooted, but still no change:

    Aug 16 16:45:24 whitt-desktop kernel: [ 134.506533] audit(1218919524.150:3): type=1503 operation="inode_permission" requested_mask="::rw" denied_mask="::rw" name="/dev/tty" pid=6241 profile="/usr/sbin/cupsd" namespace="default"

  6. #6
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: How do I grant permission for lp0?

    never mind!
    It's a bug:
    https://bugs.launchpad.net/ubuntu/+s...ba/+bug/217787

    update your system:
    Code:
    sudo aptitude update
    sudo aptitude full-upgrade
    Last edited by sisco311; August 16th, 2008 at 10:05 PM.

  7. #7
    Join Date
    Aug 2008
    Location
    Morristown, TN
    Beans
    15
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How do I grant permission for lp0?

    OK:

    whitt@whitt-desktop:~$ ls -1 /dev/lp0
    /dev/lp0
    whitt@whitt-desktop:~$

    I don't know what it means, but no nasty message.

  8. #8
    Join Date
    Aug 2008
    Beans
    188
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: How do I grant permission for lp0?

    It's "ls -l" (letter L with small case), NOT "ls -1" (number one).

  9. #9
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How do I grant permission for lp0?

    When I run ls -l /dev/lp0, I get the following:

    Code:
    crw-rw---- 1 root lp 6, 0 2008-08-15 15:17 /dev/lp0
    Are you not pasting the output?

    Jim

  10. #10
    Join Date
    Aug 2008
    Location
    Morristown, TN
    Beans
    15
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How do I grant permission for lp0?

    Sorry, not careful enough.

    whitt@whitt-desktop:~$ ls -1 /dev/lp0
    /dev/lp0
    whitt@whitt-desktop:~$ ls -l /dev/lp0
    crw-rw---- 1 root lp 6, 0 2008-08-16 16:53 /dev/lp0
    whitt@whitt-desktop:~$

    It does make a difference.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •