Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can't control permissions of devicefiles with udev

1 view
Skip to first unread message

Sebastian Noack

unread,
Jul 27, 2005, 8:03:10 PM7/27/05
to
Hi,

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

Andy Fraser

unread,
Jul 27, 2005, 8:19:01 PM7/27/05
to
Sebastian Noack <seba...@der-noack.de> wrote:

> 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.

Sebastian Noack

unread,
Jul 28, 2005, 7:35:27 AM7/28/05
to
> 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.

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

Andy Fraser

unread,
Jul 28, 2005, 7:58:10 AM7/28/05
to
In alt.os.linux, Sebastian Noack uttered the immortal words:

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.

Sebastian Noack

unread,
Jul 28, 2005, 8:49:04 AM7/28/05
to
And how can I make that the permissions in
/etc/udev/permissions.d/50-udev.permissions matches the permissions of my
devicefiles?

Best Regards
Sebastian Noack

0 new messages