Gentoo Archives: gentoo-user

From: Marc Joliet <marcec@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] /dev/snd/seq access mode and permission
Date: Fri, 17 Aug 2012 19:22:41
Message-Id: 20120817212008.7ef4e0e8@marcec.hunte.us
In Reply to: Re: [gentoo-user] /dev/snd/seq access mode and permission by Marc Joliet
1 Am Fri, 17 Aug 2012 11:40:47 +0200
2 schrieb Marc Joliet <marcec@×××.de>:
3
4 > Am Fri, 17 Aug 2012 01:54:34 -0700
5 > schrieb Cinder <cinder@××××××××××.com>:
6 >
7 > > Hi, how do I make changes to permissions and access mode of device nodes persistent? At the moment I have to chown and chmod the /dev/snd/seq node every boot to make it accessible to my user. 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 rule or configuration that creates these nodes. Many thanks for any consideration.
26 >
27 > I have a hack for the same issue in my /etc/local.d/. A comment I put there
28 > says this:
29 >
30 > # this is caused by using devtmpfs, which creates nodes with root:root and 600;
31 > # I believe this is fixed by udev upstream
32 >
33 > So devtmpfs creates the device node before udev runs, but udev does not correct
34 > the access permissions, which is however fixed by udev upstream (perhaps
35 > already in ~arch?). Sadly I do not remember where I read this, but google should
36 > be of help there.
37
38 Ah, yes, I did a quick search on b.g.o and found this:
39
40 https://bugs.gentoo.org/show_bug.cgi?id=406871
41
42 So my comment is wrong, it doesn't have anything to do with devtmpfs, but udev
43 upstream did fix it :) .
44
45 HTH
46 --
47 Marc Joliet
48 --
49 "People who think they know everything really annoy those of us who know we
50 don't" - Bjarne Stroustrup

Attachments

File name MIME type
signature.asc application/pgp-signature