Create a more multi-user friendly set of device perms
authorEric Andersen <andersen@codepoet.org>
Mon, 24 Mar 2003 19:09:22 +0000 (19:09 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 24 Mar 2003 19:09:22 +0000 (19:09 -0000)
sources/device_table.txt

index 90c2a08cdc8dd34c106489819bfc21518000a017..404f32a61f642c3816dc3a6a429e7ce21873d501 100644 (file)
 /dev/pts       d       755     0       0       -       -       -       -       -
 /tmp           d       1777    0       0       -       -       -       -       -
 /etc           d       755     0       0       -       -       -       -       -
+/home/default  d       2755    1000    1000    -       -       -       -       -
+# Adjust permissions on some normal files
+/etc/shadow    f       600     0       0       -       -       -       -       -
+/etc/passwd    f       644     0       0       -       -       -       -       -
+/bin/tinylogin f       4755    0       0       -       -       -       -       -
+# uncomment this to allow starting x as non-root
+#/usr/X11R6/bin/Xfbdev         f       4755    0       0       -       -       -       -       -
+
+# Normal system devices
 /dev/mem       c       640     0       0       1       1       0       0       -
 /dev/kmem      c       640     0       0       1       2       0       0       -
-/dev/null      c       640     0       0       1       3       0       0       -
-/dev/zero      c       640     0       0       1       5       0       0       -
-/dev/random    c       640     0       0       1       8       0       0       -
-/dev/urandom   c       640     0       0       1       9       0       0       -
-/dev/tty       c       666     0       0       5       0       0       0       -
-/dev/tty       c       666     0       0       4       0       0       1       6
-/dev/console   c       640     0       0       5       1       0       0       -
+/dev/null      c       666     0       0       1       3       0       0       -
+/dev/zero      c       666     0       0       1       5       0       0       -
+/dev/random    c       666     0       0       1       8       0       0       -
+/dev/urandom   c       666     0       0       1       9       0       0       -
 /dev/ram       b       640     0       0       1       1       0       0       -
 /dev/ram       b       640     0       0       1       0       0       1       4
 /dev/loop      b       640     0       0       7       0       0       1       2
-/dev/ptmx      c       666     0       0       5       2       0       0       -
-/dev/ttyS      c       640     0       0       4       64      0       1       4
-/dev/psaux     c       640     0       0       10      1       0       0       -
-#/dev/rtc      c       640     0       0       10      135     0       0       -
+/dev/rtc       c       640     0       0       10      135     -       -       -
+/dev/console   c       666     0       0       5       1       -       -       -
+/dev/tty       c       666     0       0       5       0       -       -       -
+/dev/tty       c       666     0       0       4       0       0       1       8
+/dev/ttyp      c       666     0       0       3       0       0       1       10
+/dev/ptyp      c       666     0       0       2       0       0       1       10
+/dev/ptmx      c       666     0       0       5       2       -       -       -
+/dev/ttyP      c       666     0       0       57      0       0       1       4
+/dev/ttyS      c       666     0       0       4       64      0       1       4
+/dev/fb                c       640     0       5       29      0       0       32      4
+#/dev/ttySA    c       666     0       0       204     5       0       1       3
+/dev/psaux     c       666     0       0       10      1       0       0       -
+#/dev/ppp      c       666     0       0       108     0       -       -       -
 
-# Adjust permissions on some normal files
-/etc/shadow    f       600     0       0       -       -       -       -       -
-/bin/tinylogin f       4755    0       0       -       -       -       -       -
+# MTD stuff
+/dev/mtd       c       640     0       0       90      0       0       2       4
+/dev/mtdblock  b       640     0       0       31      0       0       1       4
+
+# Audio stuff
+#/dev/audio    c       666     0       29      14      4       -       -       -
+#/dev/audio1   c       666     0       29      14      20      -       -       -
+#/dev/dsp      c       666     0       29      14      3       -       -       -
+#/dev/dsp1     c       666     0       29      14      19      -       -       -
+#/dev/sndstat  c       666     0       29      14      6       -       -       -
 
 # User-mode Linux stuff
 /dev/ubda      b       640     0       0       98      0       0       0       -