Fedora Linux Support Community & Resources Center
  #1  
Old 23rd June 2011, 10:32 PM
bscipioni Offline
Registered User
 
Join Date: Nov 2005
Posts: 13
linuxfirefox
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
Reply With Quote
  #2  
Old 24th June 2011, 12:30 AM
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 6,190
linuxfirefox
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.
Reply With Quote
  #3  
Old 24th June 2011, 02:24 PM
bscipioni Offline
Registered User
 
Join Date: Nov 2005
Posts: 13
linuxfirefox
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.
Reply With Quote
  #4  
Old 24th June 2011, 02:55 PM
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 6,190
linuxfirefox
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.
Reply With Quote
  #5  
Old 25th June 2011, 02:56 PM
bscipioni Offline
Registered User
 
Join Date: Nov 2005
Posts: 13
linuxfirefox
Re: setting correct default permissions on /dev/parport*

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

Tags
correct, default, or dev or parport, permissions, setting

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


Current GMT-time: 23:06 (Wednesday, 22-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Santiago Tuxtla Photos on Instagram - Tacambaro de Codallos - Manati