Gentoo Archives: gentoo-user

From: Chris Cox <yeahsowhat@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] /dev permissions
Date: Tue, 19 Jul 2005 01:34:10
Message-Id: 200507182028.23335.yeahsowhat@gmail.com
1 On Sunday 19 June 2005 06:09 pm, Qv6 wrote:
2 > Hello:
3 >
4 > Just looked under /dev and observed that the ownership of all the
5 > entries are root:root with mostly 555 permissions. Is this the default
6 > or do I have to change anything? Here's a snip from "ls -l /dev"
7 >
8 > lr-xr-xr-x 1 root root 10 Jun 17 06:55 adsp -> sound/adsp
9 > lr-xr-xr-x 1 root root 12 Jun 17 06:55 agpgart -> misc/agpgart
10 > lr-xr-xr-x 1 root root 11 Jun 17 06:55 audio -> sound/audio
11 > lr-xr-xr-x 1 root root 13 Jun 17 06:55 cdrom -> cdroms/cdrom0
12 > drwxr-xr-x 1 root root 0 Dec 31 1969 cdroms
13 >
14 > drwxr-xr-x 1 root root 0 Dec 31 1969 discs
15 > drwxr-xr-x 1 root root 0 Jun 17 06:55 dri
16 > lr-xr-xr-x 1 root root 9 Jun 17 06:55 dsp -> sound/dsp
17 > lr-xr-xr-x 1 root root 8 Jun 17 06:55 dvd -> /dev/hdc
18 >
19 > drwxr-xr-x 1 root root 0 Dec 31 1969 floppy
20 >
21 > drwxr-xr-x 1 root root 0 Dec 31 1969 usb
22 >
23 > Is this the reason why I cannot play dvd movies?
24 >
25
26 They all say root:root because those are symlinks that point to a
27 directory/file. So, the entry:
28 lr-xr-xr-x 1 root root 13 Jun 17 06:55 cdrom -> cdroms/cdrom0
29
30 would point to:
31
32 brw-rw---- 1 root cdrom 22, 0 Jul 18 19:27 hdc
33
34 Notice the permission is root:cdrom and not root:root. Hope this info helps
35 clear things up.
36
37 --
38 Chris
39 Linux 2.6.12-gentoo-r5 i686 AMD Athlon(tm) XP
40 20:24:28 up 1 day, 11:56, 5 users, load average: 0.78, 0.90, 0.86
41 --
42 gentoo-user@g.o mailing list