FedoraForum.org - Fedora Support Forums and Community
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2005
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    setting correct default permissions on /dev/parport*

    I know - who uses parallel ports any more? People like me with an excellent, but old, HP OfficeJetPro 1150C. This is an old problem marked [SOLVED] in the following link to nowhere:

    http://forums.fedoraforum.org/forum/...d.php?p=571177

    I'm at Fedora 13 - 2.6.34.8-68.fc13.i686.PAE

    Problem
    1. /dev/parport0 is not found by sane unless you reset permissions after each boot
    2. hplip udev rules only seem to support usb devices.
    3. there are no/dev/parport[0-9] rules in udev/rules.d anymore
    4. Did I read something about these ports being handled by HAL ACLs? If so, how do you do it?

    default:
    ls -laF /dev/parport0
    crw-rw---- 1 root lp 99, 0 Jun 23 07:48 /dev/parport0

    must do at each boot:
    sudo chmod 666 /dev/parport0

    someone surely knows the solution to this problem - thanks

  2. #2
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,919
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)

    Re: setting correct default permissions on /dev/parport*

    Just add each user who needs to access that port to the "lp" group. Then you won't need to reset permissions.

  3. #3
    Join Date
    Nov 2005
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: setting correct default permissions on /dev/parport*

    Yes, I could do that. Is that the "recommended" approach though - from a security perspective?
    Also, I still wonder why the parport rules disappeared in udev/rules.d since Fedora 8 - usually changes are done for a reason - well ... at least sometimes thanks.

  4. #4
    PabloTwo's Avatar
    PabloTwo is offline "Fedora User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    8,919
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)

    Re: setting correct default permissions on /dev/parport*

    Well, you could create your own udev rule for the device paraport and set the permissions to 666 with that, but it just seems much easier to add the user(s) to the associated group. It's what I do for user access to I/O ports such as /dev/ttyUSB0 and /dev/ttyS0, which are associated with the "dialout" group.

    Back in F8 I used to modify one of the existing udev rules and set permissions to 666 for one of the above. But as you've noted, many of those rules are now absent in later releases of Fedora. I now just add myself to the dialout group for user access and am done with it.

    ---------- Post added at 09:55 AM ---------- Previous post was at 09:43 AM ----------

    From a strict security point of view, yes, that would be the preferred way, as you could limit which user(s) have access to the printer. On a home network, I doubt that would be an issue though.

  5. #5
    Join Date
    Nov 2005
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: setting correct default permissions on /dev/parport*

    Thanks for the feedback. I still wonder WHY those udev rules disappeared.

Similar Threads

  1. default permissions
    By Saint Mike in forum Using Fedora
    Replies: 1
    Last Post: 23rd June 2008, 02:19 AM
  2. What is the correct way to configure a Default Gateway
    By guidabrito in forum Servers & Networking
    Replies: 4
    Last Post: 26th February 2008, 04:40 PM
  3. how to restore correct permissions on system files
    By piergi in forum Security and Privacy
    Replies: 5
    Last Post: 19th July 2007, 12:06 AM
  4. Denied cgi-bin access but permissions are correct
    By doctorfish in forum Servers & Networking
    Replies: 4
    Last Post: 9th September 2005, 05:32 AM

Tags for this Thread

Posting Permissions

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