Re: mauvaises permissions /dev/*

Top Page

Reply to this message
Author: Frédéric
Date:  
To: ML Guilde
Subject: Re: mauvaises permissions /dev/*
On lundi 9 Novembre 2020 22:45, Alexandre FROUART wrote:

> recemment, j'ai due change les permition de /dev/rtc, et j'ai
> malencontreusement tapé:
> cd /dev
> chmod 755 rtc * au lieu de chmod 755 rtc* , ce qui a eut pour incidence
> de changer les permissions de tous mes fichiers spéciaux dans /dev/*
> J'ai bien essayé de redonner à chaque groupe de fichier la permission la
> plus logique (genre, pas un 755 sur les /dev/hd* :-) ) mais n'y a t-il
> pas une manière plus orthodoxe de remettre les permissions de base à ce
> petit monde?


Ben, ça dépend sur quelle distribe tu es. Certaines font ça un peu goret,
d'autres plus sérieusement. Mais je ne vois pas vraiment de manière de les
retrouver.

J'ai joint les permissions sous Debian... J'ai zappé les lignes de même
groupe, ainsi que les liens symboliques (ils ont lrwxrwxrwx comme
permission). J'espère que ça t'aidera.

- --
Frédéric

http://www.gbiloba.org
total 91
crw-rw----  1 root video    10, 175 2004-08-19 21:49 agpgart
crw-rw----  1 root root     10, 134 2004-08-19 20:42 apm_bios
drwxr-xr-x  2 root root        1200 2004-08-19 21:49 ataraid
crw-------  1 root root     10,   3 2004-07-22 21:54 atibm
crw-rw----  1 root audio    14,   4 2004-07-22 21:54 audio
...
brw-rw----  1 root cdrom    29,   0 2004-07-22 21:55 aztcd0
brw-rw----  1 root cdrom    41,   0 2004-07-22 21:55 bpcd
drwxr-xr-x  2 root root       18480 2004-08-19 21:49 cciss
brw-rw----  1 root cdrom    24,   0 2004-07-22 21:55 cdu535
brw-rw----  1 root cdrom    30,   0 2004-07-22 21:55 cm206cd0
crw-------  1 root tty       5,   1 2004-11-09 19:21 console
crw-rw-rw-  1 root root    241,  64 2004-08-28 11:54 cuaHSF0
...
crw-rw----  1 root disk    151,   0 2004-07-22 21:55 dpti1
...
drwxr-xr-x  2 root root          72 2004-11-07 20:59 dri
crw-rw----  1 root audio    14,   3 2004-07-22 21:54 dsp
...
brw-rw----  1 root disk     36,   0 2004-07-22 21:55 eda
...
crw-rw----  1 root video    29,   0 2004-09-13 07:36 fb0
...
brw-rw----  1 root floppy    2,   0 2004-07-22 21:56 fd0
...
crw-rw-rw-  1 root root      1,   7 2004-09-13 07:36 full
brw-rw----  1 root cdrom    16,   0 2004-07-22 21:55 gscd0
brw-rw----  1 root disk      3,   0 2004-07-22 21:54 hda
...
crw-rw-rw-  1 root root    242,   0 2004-08-28 11:54 hsfdcp0
...
crw-rw-rw-  1 root root    243,   0 2004-08-28 11:54 hsfdiag0
...
drwxr-xr-x  2 root root        1608 2004-08-19 21:49 i2o
drwxr-xr-x  2 root root       18480 2004-08-19 21:49 ida
prw-------  1 root root           0 2004-11-09 18:58 initctl
brw-rw----  1 root disk      1, 250 2004-07-22 21:55 initrd
crw-------  1 root root     10,   2 2004-07-22 21:54 inportbm
drwxr-xr-x  2 root root         360 2004-08-19 21:49 input
crw-rw----  1 root dialout  45, 128 2004-07-22 21:55 ippp0
...
crw-rw----  1 root dialout  45,   0 2004-07-22 21:55 isdn0
...
crw-rw----  1 root dialout  45,  64 2004-07-22 21:55 isdnctrl0
...
crw-------  1 root root     10,   4 2004-07-22 21:54 jbm
crw-r-----  1 root kmem      1,   2 2004-09-13 07:36 kmem
brw-rw----  1 root cdrom    24,   0 2004-07-22 21:55 lmscd
srw-rw-rw-  1 root root           0 2004-11-09 19:20 log
crw-------  1 root root     10,   0 2004-07-22 21:54 logibm
brw-rw----  1 root disk      7,   0 2004-09-13 07:36 loop0
...
crw-rw----  1 root lp        6,   0 2004-07-22 21:55 lp0
...
brw-rw----  1 root cdrom    23,   0 2004-07-22 21:55 mcd
brw-rw----  1 root cdrom    20,   0 2004-07-22 21:55 mcdx0
...
brw-rw----  1 root disk      9,   0 2004-07-22 21:55 md0
...
crw-r-----  1 root kmem      1,   1 2004-09-13 07:36 mem
crw-rw----  1 root audio    35,   0 2004-07-22 21:54 midi0
...
crw-rw----  1 root audio    14,   0 2004-07-22 21:54 mixer
...
crw-rw----  1 root audio    31,   0 2004-07-22 21:54 mpu401data
crw-rw----  1 root audio    31,   1 2004-07-22 21:54 mpu401stat
crw-rw----  1 root tape      9, 128 2004-07-22 21:54 nst0
...
crw-rw-rw-  1 root root      1,   3 2004-09-13 07:36 null
brw-rw----  1 root cdrom    17,   0 2004-07-22 21:55 optcd
crw-rw----  1 root lp        6,   0 2004-07-22 21:54 par0
...
crw-rw----  1 root lp       99,   0 2004-08-19 20:45 parport0
...
crw-r-----  1 root kmem      1,   4 2004-09-13 07:36 port
crw-rw----  1 root dip     108,   0 2004-08-19 21:50 ppp
crw-------  1 root root     10,   1 2004-07-22 21:54 psaux
crw-rw-rw-  1 root tty       5,   2 2004-11-09 23:05 ptmx
drwxr-xr-x  2 root root           0 2004-11-09 19:20 pts
crw-rw-rw-  1 root tty       2, 176 2004-07-22 21:54 ptya0
...
crw-rw----  1 root video    81,  64 2004-08-19 22:47 radio0
...
lrwxrwxrwx  1 root root           4 2004-09-13 07:36 ram -> ram1
brw-rw----  1 root disk      1,   0 2004-09-13 07:36 ram0
...
crw-rw-rw-  1 root root      1,   8 2004-09-13 07:36 random
crw-rw----  1 root disk    171,   0 2004-08-19 20:44 raw1394
drwxr-xr-x  2 root root       49200 2004-08-19 21:49 rd
crw-rw----  1 root audio    35,  64 2004-07-22 21:54 rmidi0
...
crw-rw-rw-  1 root root     10, 135 2004-07-22 21:55 rtc
brw-rw----  1 root cdrom    25,   0 2004-07-22 21:55 sbpcd0
...
brw-rw----  1 root cdrom    11,   0 2004-07-22 21:55 scd0
...
drwxr-xr-x  2 root root          48 2004-08-19 22:31 scsi
brw-rw----  1 root disk      8,   0 2004-07-22 21:54 sda
...
crw-rw----  1 root audio    14,   1 2004-07-22 21:54 sequencer
crw-rw----  1 root scanner  21,   0 2004-07-22 21:54 sg0
...
drwxrwxrwt  2 root root          40 2004-11-09 19:20 shm
brw-rw----  1 root cdrom    18,   0 2004-07-22 21:55 sjcd
crw-rw----  1 root audio    35, 128 2004-07-22 21:54 smpte0
crw-rw----  1 root audio    35, 129 2004-07-22 21:54 smpte1
crw-rw----  1 root audio    35, 130 2004-07-22 21:54 smpte2
crw-rw----  1 root audio    35, 131 2004-07-22 21:54 smpte3
drwxr-xr-x  2 root root        2912 2004-11-09 22:18 snd
crw-rw----  1 root audio    14,   6 2004-07-22 21:54 sndstat
brw-rw----  1 root cdrom    15,   0 2004-07-22 21:55 sonycd
crw-rw----  1 root tape      9,   0 2004-07-22 21:54 st0
...
crw-rw-rw-  1 root tty       5,   0 2004-11-09 20:44 tty
crw-------  1 root root      4,   0 2004-09-13 07:36 tty0
...
crw-rw-rw-  1 root tty       3, 176 2004-07-22 21:54 ttya0
...
crw-rw----  1 root dialout 166,   0 2004-07-22 21:55 ttyACM0
...
crw-rw-rw-  1 root tty       3, 189 2004-07-22 21:54 ttyad
...
crw-rw-rw-  1 root root    240,  64 2004-08-28 11:54 ttySHSF0
...
crw-rw-rw-  1 root tty       3,  64 2004-07-22 21:54 ttyt0
...
crw-rw----  1 root dialout 188,   0 2004-07-22 21:55 ttyUSB0
...
crw-rw-rw-  1 root tty       3,  96 2004-07-22 21:54 ttyv0
...
cr--r--r--  1 root root      1,   9 2004-11-09 19:20 urandom
drwxr-xr-x  2 root root        2088 2004-08-19 21:49 usb
crw-rw----  1 root video    81, 224 2004-08-19 22:47 vbi0
...
crw-------  1 root tty       7,   0 2004-07-22 21:54 vcs0
...
crw-------  1 root tty       7, 128 2004-07-22 21:54 vcsa0
...
crw-rw----  1 root video    81,   0 2004-08-19 22:47 video0
...
crw-rw----  1 root video    83,  16 2004-08-19 22:47 vttuner
crw-rw----  1 root video    83,   0 2004-08-19 22:47 vtx
...
crw-rw----  1 root video    82,   0 2004-08-19 22:47 winradio0
...
prw-r-----  1 root adm            0 2004-11-09 19:20 xconsole
brw-rw----  1 root disk     13,   0 2004-07-22 21:54 xda
...
crw-rw-rw-  1 root root      1,   5 2004-09-13 07:36 zero