LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-10-2006, 04:30 PM   #1
ZaphyR
Member
 
Registered: Dec 2003
Distribution: Gentoo / Sabayon / Suse
Posts: 245

Rep: Reputation: 32
can't change ownerhip of parport0


I have recently installed Suse 10.1 on my fathers laptop, and he has old scanner he wants to use. The scanner uses the parallel port, not usb.

I managed to install the drivers, and test the scanner, it works perfectly. Only thing is that the ownership of parport0 changes to root:root after every reboot. I use chown to change it to XXXX:users but it always goes returns to root.

How can I permanently change the ownership, or group, of /dev/parport0?
 
Old 08-10-2006, 08:22 PM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Change the udev rules for parport[0-9]. Should just be able to change the group from root to users in the rules file but not sure when it's located in Suse, try somewhere in /etc/udev.
 
Old 08-11-2006, 02:37 PM   #3
ZaphyR
Member
 
Registered: Dec 2003
Distribution: Gentoo / Sabayon / Suse
Posts: 245

Original Poster
Rep: Reputation: 32
I created a file called 10-local.rules under /etc/udev/rules.d/ and added the following line:
Code:
KERNEL=="parport[0-9]*", GROUP="users"
so now a ls -l /dev/parport0 shows this:
Code:
crw-rw---- 1 root users
Scanning now works perfectly as user as well!

Thanks!
 
Old 08-11-2006, 09:29 PM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Awesome And nice posting the answer for other people!
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
accidentally deleted /dev/parport0 ebil Linux - Hardware 5 04-21-2005 07:35 PM
parport0 error using my HP printer sKru Linux - Newbie 4 05-18-2004 01:23 AM
Parport0 error with my HPOfficeJetG85 sKru Linux - Hardware 0 05-17-2004 03:22 AM
Howto accessing parport0 Li... Debian 1 04-10-2004 02:50 PM
/dev/parport0 probs The Yeti Lives Linux - General 0 08-06-2003 02:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration