Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Cc: cinder@××××××××××.com
Subject: Re: [gentoo-user] /dev/snd/seq access mode and permission
Date: Fri, 17 Aug 2012 09:12:04
Message-Id: 20120817110826.27ae70fc@khamul.example.com
In Reply to: [gentoo-user] /dev/snd/seq access mode and permission by Cinder
1 On Fri, 17 Aug 2012 01:54:34 -0700
2 Cinder <cinder@××××××××××.com> wrote:
3
4 > Hi, how do I make changes to permissions and access mode of device
5 > nodes persistent? At the moment I have to chown and chmod
6 > the /dev/snd/seq node every boot to make it accessible to my user.
7 > the other nodes are fine. Here's the output of ls -l /dev/snd/
8 >
9 > total 0
10 > drwxr-xr-x 2 root root 60 Aug 17 18:44 by-path
11 > crw-rw----+ 1 root audio 116, 12 Aug 17 18:44 controlC0
12 > crw-rw----+ 1 root audio 116, 11 Aug 17 18:44 hwC0D0
13 > crw-rw----+ 1 root audio 116, 10 Aug 17 18:44 hwC0D3
14 > crw-rw----+ 1 root audio 116, 9 Aug 17 18:44 hwC0D4
15 > crw-rw----+ 1 root audio 116, 8 Aug 17 18:44 hwC0D5
16 > crw-rw----+ 1 root audio 116, 7 Aug 17 18:44 pcmC0D0c
17 > crw-rw----+ 1 root audio 116, 6 Aug 17 18:44 pcmC0D0p
18 > crw-rw----+ 1 root audio 116, 5 Aug 17 18:44 pcmC0D1p
19 > crw-rw----+ 1 root audio 116, 4 Aug 17 18:44 pcmC0D3p
20 > crw-rw----+ 1 root audio 116, 3 Aug 17 18:44 pcmC0D7p
21 > crw-rw----+ 1 root audio 116, 2 Aug 17 18:44 pcmC0D8p
22 > crw------- 1 root root 116, 1 Aug 17 18:44 seq
23 > crw-rw----+ 1 root audio 116, 33 Aug 17 18:44 timer
24 >
25 > I need /dev/snd/seq to look look the others. I can't find the udev
26 > rule or configuration that creates these nodes. Many thanks for any
27 > consideration.
28
29 If there's no explicit rule, then it's automagic. But you can still
30 additionally tell udev how to set the mode and owner. Here's an
31 example, Google knows more (this stuff does seem to change quite a lot):
32
33 http://www.reactivated.net/writing_udev_rules.html#ownership
34 --
35 Alan McKinnon
36 alan.mckinnon@×××××.com