LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-08-2006, 04:37 PM   #1
lowebb
Member
 
Registered: Aug 2005
Location: Ireland
Distribution: Ubuntu, Ubuntu, Ubuntu
Posts: 119

Rep: Reputation: 15
device permissions


Hi,

I'm running FC4 and have a DVB TV card device. It works great under user root but I would prefer it to be a non admin user account. Currently on boot the UID and GID are 'root' but because of mplayer and xine I cannot access this device under user freevo.

I've altered the '/etc/udev/rules.d/50-udev.rules' to

KERNEL=="dvb/*", GROUP="freevo", MODE="0660"

(it originally didnt have the group command)

but it still creates this device to user root on a reboot?

I cant work out why and need any help anyone can give. Thanks very much in advance
 
Old 03-11-2006, 04:25 AM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
If you want to use custom/your own rules, they should go in another file which is called before the 50-udev.rules are applied.
As an example: my file is: 10-udev-my.rules
and that's whats in it:
Code:
cat 10-udev-my.rules
KERNEL=="rfcomm[0-9]*", NAME="%k", GROUP="dialout", MODE="0660"
If it helps - I have a different rule for dvb in 50-udev.rules - probably a different version of udev...
Code:
# dvb devices
SUBSYSTEM=="dvb", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}'", NAME="%c", GROUP="video"
but I don't have such device...
 
Old 03-14-2006, 03:29 AM   #3
lowebb
Member
 
Registered: Aug 2005
Location: Ireland
Distribution: Ubuntu, Ubuntu, Ubuntu
Posts: 119

Original Poster
Rep: Reputation: 15
So 10-udev-rules is automatically called before 50-udev-rules?

I'll give this a go tonight

Thanks
 
Old 03-14-2006, 04:26 AM   #4
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
Yes for the first point. And it's not altered by any rules that might come afterwards.
A quote from a tutorial
Quote:
Files in /etc/udev/rules.d/ are parsed in lexical order. udev will stop processing rules as soon as it finds a matching rule in a file for the new item of hardware that has been detected. It is important that your own rules get processed before the udev defaults, otherwise your own naming schemes will not take effect! I suggest that you keep your own rules in a file at /etc/udev/rules.d/10-local.rules (this doesn't exist by default - create it). As 10 comes before 50, you know that your rules will be looked at first. It is important that the filenames of your rule files end with the .rules suffix, otherwise they will not be used.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mounted device: permissions error the1sephiroth Linux - General 7 12-26-2005 11:12 PM
Making device permissions stick mugwump84 Linux - Newbie 3 04-05-2005 04:35 PM
How do I change the permissions to mount a device folken718 Slackware 9 08-14-2004 03:02 AM
[Audio] Cant open device (permissions) seb3579 Linux - Hardware 3 05-14-2004 11:24 PM
device (fd0, cdrom) permissions slacard Slackware 5 10-01-2003 11:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:47 AM.

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