I'm using udev and my problem is that only root can access each
devicefile. All devicefiles have the priveleges 0660 like it is defined by
the default_mode proberty in /etc/udev/udev.conf. But why udev don't use
the previleges wich are fined in /etc/udev/permissions.d/50-udev.permissions ?
Here the content of my /etc/udev/udev.conf:
# /etc/udev/udev.conf: main config file for udev
# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/files/udev.conf.post_024,v 1.2 2004/06/07 22:36:18 gregkh Exp $
#
# This file can be used to override some of udev's default values
# for where it looks for files, and where it places device nodes.
# udev_root - where in the filesystem to place the device nodes
udev_root="/dev/"
# udev_db - The name and location of the udev database.
# NOTE: this should be somewhere that is writable before
# / is mounted rw, like /dev ...
udev_db="/dev/.udev.tdb"
# udev_rules - The name and location of the udev rules file
udev_rules="/etc/udev/rules.d/50-udev.rules "
# udev_permissions - The name and location of the udev permission file
udev_permissions="/etc/udev/permissions.d/50-udev.permissions"
# default_mode - set the default mode for all nodes that have no
# explicit match in the permissions file
# NOTE: do not set to anything else if you are not
# sure you have everything needed for normal
# user to function in the permissions file!
default_mode="0660"
# udev_log - set to "yes" if you want logging
udev_log="no"
I hope anybody have an idea. thanks.
Best regards
Sebastian Noack
> I'm using udev and my problem is that only root can access each
> devicefile.
Look at the group of the device. A mortal user has to be in the correct
group to access the device e.g. I'm in the audio group so I can access
sound devices.
> All devicefiles have the priveleges 0660 like it is defined by
> the default_mode proberty in /etc/udev/udev.conf. But why udev don't use
> the previleges wich are fined in /etc/udev/permissions.d/50-udev.permissions ?
I've just had a quick look in 50-udev.permissions and it looks like most
of them are set to 0660 so it looks like it is.
--
Andy.
No, e.g. zero, null and random are set to MODE="0666" in
50-udev.permissions but if i do "ls -l /dev/zero /dev/null /dev/random"
it returns:
crw-rw---- 1 root root 1, 3 Jul 28 2005 /dev/null
crw-rw---- 1 root root 1, 8 Jul 28 2005 /dev/random
crw-rw---- 1 root root 1, 5 Jul 28 2005 /dev/zero
Best regards
Sebastian Noack
Ah, some examples. Unless you expected someone to check all the permissions
in 50-udev.permissions against their /dev directory these should've been
you OP.
--
Andy.
Best Regards
Sebastian Noack