UdevConfiguration
From FreeBoB
In order for ordinary users to be able to use the 1394 related device drivers, such as raw1394, one needs to make sure that the permissions of these devices are correct. On modern systems, this is done by changing the configuration of udev.
(note: this might be Fedora Core specific) (Applies to: Fedora Core, RedHat) (please add others if verified)
| Table of contents |
Making sure udev recognizes the 1394 devices
Note: chances are that this is already done by your distribution. You can check this by running:
$ grep -R 1394 /etc/udev/ | grep rules
if this returns lines like this:
KERNEL="raw1394", NAME="%k" KERNEL="dv1394*", NAME="dv1394/%n" KERNEL="video1394*", NAME="video1394/%n"
The rules are probably set up correctly. Another way to check this is to check the presence of /dev/raw1394. If it is present, there is no need to change the rules.
Otherwise create the following file in /etc/udev/rules.d:
40-linux1394.rules
containing:
KERNEL="raw1394", NAME="%k" KERNEL="dv1394*", NAME="dv1394/%n" KERNEL="video1394*", NAME="video1394/%n"
Allow access to all users
Create the following files in /etc/udev/
permissions.d/40-linux1394.permissions
containing:
raw1394:root:root:0666 dv1394/*:root:root:0666 video1394/*:root:root:0666
Allow access to a specific group of users
Use 'disk' group
There are several ways in which this can be done. One way which has been suggested is allowing the 'disk' group access to raw1394.
Add the following to /etc/udev/rules.d/40-permissions.rules:
KERNEL="raw1394", GROUP="disk"
If you are a user with substantial privileges, this should be all that is necessary. To be certain your user is a member of the 'disk' group:
adduser your_user_name disk
Create a new group
If you would prefer to create a new group for these privileges, create a group (choose any name you wish and substitute it for 'rawfw' in the following:
groupadd rawfw adduser your_user_name rawfw
Now, instead of the above GROUP="disk" in /etc/udev/rules.d/40-permissions.rules
KERNEL="raw1394", GROUP="rawfw"
Note that following this method, any user that needs to use a freebob device will need to be added to the group that has access privileges.
