MOUNT E PERMESSI

Filippi Stefano stefano63@gmail.com
Ven 3 Feb 2006 19:59:53 CET


http://www.mepisitalia.org/modules/newbb/viewtopic.php?topic_id=5&forum=9
ecco come modificare fstab (mi fa piacere che ti sia iscritto)
Ciao

2006/2/3, christian <picard12@vodafone.it>:
>
> Valerio Pachera ha scritto:
>
> > Problemino risolto:
> > mercoledì scorso non riuscivo a scrivere come utente normale su una
> > partizione dati (hda7).
> > Il punto di mount (/mnt/hda7) aveva i permessi 755 (rwxr-xr-x).
> > Io volevo impostare 777.
> > Ho smontato la partizione, cambiato i permessi ma poi venivano
> > ripristinati al mount.
> > Bastava SEMPLICEMENTE cambiare i permessi QUANDO LA PARTIZIONE ERA
> MONTATA.
> > Poi ai successivi mount/reboot i permessi rimangono gli stessi.
> >
> > Ora porgo un'altro nel questio:
> > il mio fstab imposta l'opzione noauto ad hda7 (anche altre).
> > Io volgio che tale partizione sia montata al boot e quindi passare
> > l'opzione auto.
> > Ho editato fstab ma questo viene riscritto ad ogni reboot (e forse
> > anche quando vengono aggiungti dispositivi). Scusate il forse ma, come
> > al solito, non ho linux sotto mano. (La prova dei permessi l'ho fatta
> > ieri all'1 di notte).
> > Quindi, se fstab viene riscritto al rebboot, come faccio "FISSARE"
> > un'impstazione?
> > E' una cosa che cambia da distro a distro o lo fanno tutte?
> >
> > ------------------------------------------------------------------------
> >
> >
> >
> Credo dipenda principalmente da udev.
>
> Il file di configurazione si trova in /etc/udev/rules..
> Ora sto leggendo il mio per capire dove sta la soluzione.
>
> In questa cartella vi sono dei file nominati tipo: 10-xxx.rules,
> 20-xxx.rules, 30-xxx.rules etc.
>
> Udev legge le rules ogni volta che viene collegato    qualcosa e appena
> trova la regola adatta la mette in pratica.
> Ovvero legge per prima 10-xxx.rules e poi il resto. Da qui la possibiltà
> di crearsi un file personale di configurazione e nominarlo con un
> numero  inferiore a quello originale.
>
> Io ti allego il mio cosi lo puoi provare.Se risolvi la cosa abbiamo la
> prova che dipende da udev.Ma a me pare che sia proprio così..
>
>
> # There are a number of modifiers that are allowed to be used in the NAME
> or PROGRAM fields.
> # They provide the following subsitutions:
> # %n - the "kernel number" of the device.
> #      for example, 'sda3' has a "kernel number" of '3'
> # %e the smallest number for that name which does not matches an existing
> node
> # %k - the kernel name for the device.
> # %M - the kernel major number for the device
> # %m - the kernel minor number for the device
> # %b - the bus id for the device
> # %c - the return value for the CALLOUT program (note, this doesn't work
> within
> #      the PROGRAM field for the obvious reason.)
> # %s{filename} the content of a sysfs attribute
> # %D - use the devfs style disk name for this device.
> #      For partitions, this will result in 'part%n'
> #      If this is not a partition, it will result in 'disc'
> # %% the '%' char itself
> #
>
> # we provide both old, devfs & LSB device nodes:
>
> #cht E1000- moto4lin
> KERNEL=="ttyACM[0-9]*", NAME="ttyACM%n", GROUP="usb", MODE="0660"
>
>
> #-------------------------------------------------
> # CPU devices:
> KERNEL=="cpu[0-9]*",                            NAME="cpu/%n/cpuid",
> SYMLINK="cpu/%k"
> KERNEL=="msr[0-9]*",                            NAME="cpu/%n/msr",
> SYMLINK="cpu/%k", SYMLINK="%k"
> KERNEL=="microcode",                            NAME="cpu/microcode"
>
> #-------------------------------------------------
> # infiniband devices:
> KERNEL=="umad*",        NAME="infiniband/%k"
> KERNEL=="issm*",        NAME="infiniband/%k"
>
> #-------------------------------------------------
> # tpm devices:
> KERNEL=="tpm*",    NAME="%k", OWNER="tss", GROUP="tss", MODE="0600"
>
>
> #-------------------------------------------------
> # Block Devices:
>
> # all block devices
> SUBSYSTEM="block",                         GROUP="disk"
> SUBSYSTEM="block", SYSFS{removable}="1", GROUP="floppy"
>
> # USB ZIP/JAZ
> KERNEL=="sd*", SYSFS{vendor}="IOMEGA", SYSFS{model}="ZIP*",
> SYMLINK+="zip%n"
> KERNEL=="sd*", SYSFS{vendor}="IOMEGA", SYSFS{model}="jaz*",
> SYMLINK+="jaz%n"
>
> # IEEE1394 (firewire) devices (must be before raw devices below):
> KERNEL=="raw1394", NAME="%k",      GROUP="video"
> KERNEL=="dv1394*", NAME="dv1394/%n",   GROUP="video"
> KERNEL=="video1394*",  NAME="video1394/%n",    GROUP="video"
>
> # disk devices
> KERNEL=="sd*",          NAME="%k",
> GROUP="disk",      PROGRAM="/etc/udev/scripts/scsi-devfs.sh %k %b %n",
> SYMLINK+="%c{2} %c{1}"
> KERNEL=="dasd*",                NAME="%k", GROUP="disk"
> KERNEL=="ataraid*",     NAME="%k", GROUP="disk"
> BUS="scsi", KERNEL=="sg[0-9]*", SYSFS{type}=="6", SYMLINK="scanner%e",
> MODE="0660"
> BUS="scsi", KERNEL=="sg*", NAME="%k", PROGRAM="/etc/udev/scripts/scsi-
> devfs.sh %k %b %n", SYMLINK+="%c{1} %c{2}", MODE="0660", GROUP="cdwriter"
>
> # device mapper creates its own device nodes, so ignore these:
> KERNEL=="dm-[0-9]*",                            OPTIONS="ignore_device"
> KERNEL=="device-mapper",                        NAME="mapper/control"
>
> # raw:
>
> KERNEL=="raw[0-9]*",                            NAME="raw/%k",          SYMLINK+="%k",          GROUP="disk"
> KERNEL=="rawctl",
> SYMLINK+="raw/%k",      GROUP="disk"
> KERNEL=="tun[0-9]*",                            NAME="raw/%k"
>
> # RAID controllers:
> KERNEL=="cciss!*", PROGRAM="/etc/udev/scripts/raid-devfs.sh %k",
> NAME="%c{1}", SYMLINK+="%k"
> KERNEL=="ida!*",   PROGRAM="/etc/udev/scripts/raid-devfs.sh %k",
> NAME="%c{1}", SYMLINK+="%k"
> KERNEL=="rd!*",    PROGRAM="/etc/udev/scripts/raid-devfs.sh %k",
> NAME="%c{1}", SYMLINK+="%k"
>
>
> # misc:
> BUS="ide", KERNEL=="hd*", PROGRAM="/etc/udev/scripts/ide-devfs.sh %k %b
> %n",  SYMLINK+="%c{1} %c{2} %c{3} %c{4} %c{5}", GROUP="%c{3}"
>
>
> KERNEL=="md[0-9]*",
> SYMLINK+="md/%n",                       GROUP="disk"
> KERNEL=="md_d[0-9]*",
> SYMLINK+="md/d%n",              GROUP="disk"
> KERNEL=="loop[0-9]*",                   SYMLINK+="loop/%n",
> GROUP="disk"
>
> KERNEL=="cloop[0-9]*",                  SYMLINK+="cloop/%n",            GROUP="disk"
> KERNEL=="fd[0-9]*", SYMLINK+="floppy/%n", GROUP="floppy",
> RUN+="/etc/udev/scripts/floppy-extra-devs.sh %k %b %n"
> KERNEL=="pktcdvd",                      NAME="pktcdvd/control",
> GROUP="cdrom", MODE="0660"
>
> KERNEL=="pktcdvd[0-9]*",                        SYMLINK+="pktcdvd/%n",  GROUP="disk"
>
> KERNEL=="ram[0-9]*",                            SYMLINK+="rd/%n",
> GROUP="disk"
>
>
>
> # cdrom symlinks and other good cdrom naming:
> BUS="ide",  KERNEL=="hd[a-z]",  PROGRAM="/sbin/cdsymlinks %k",
> SYMLINK+="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"
> BUS="scsi", KERNEL=="sr[0-9]*", PROGRAM="/sbin/cdsymlinks %k",
> SYMLINK+="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}", GROUP="cdrom"
> BUS="scsi", KERNEL=="scd[a-z]", PROGRAM="/sbin/cdsymlinks %k",
> SYMLINK+="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"
>
>
> # workaround for devices which do not report media changes:
> BUS="ide", KERNEL=="hd[a-z][0-9]*", SYSFS{removable}="1", \
>   PROGRAM=="/etc/udev/scripts/ide-model.sh %k", RESULT="IOMEGA ZIP *", \
>   OPTIONS=all_partitions, NAME="%k", GROUP="floppy"
>
> # IDE devices
> BUS="ide", KERNEL=="hd[a-z]", SYSFS{removable}="1", \
>   PROGRAM=="/bin/cat /proc/ide/%k/media", RESULT="cdrom*", \
>   GROUP="cdrom"
> BUS="ide", KERNEL=="hd[a-z]", SYSFS{removable}="1", \
>   PROGRAM=="/bin/cat /proc/ide/%k/media", RESULT="floppy*", \
>   GROUP="floppy"
>
> # devfs compat names for SCSI devices:
> # permissions for SCSI CD devices
> BUS="scsi", KERNEL=="s[grt][0-9]*", SYSFS{type}="5",
> PROGRAM="/etc/udev/scripts/scsi-devfs.sh %k %b %n", NAME="%c{1}",
> SYMLINK+="%k %c{2}", MODE="0660", GROUP="cdrom"
>
> # SCSI block devices
> BUS="scsi", KERNEL=="sd[a-i][a-z][0-9]*", PROGRAM="/etc/udev/scripts/scsi-
> devfs.sh %k %b %n", NAME="%k", SYMLINK+="%c{2} %c{1}"
> BUS="scsi", KERNEL=="s[grt][0-9]*", PROGRAM="/etc/udev/scripts/scsi-
> devfs.sh %k %b %n", NAME="%k", SYMLINK+="%c{2} %c{1}"
> BUS="scsi", KERNEL=="scd[0-9]*",        PROGRAM="/etc/udev/scripts/scsi-
> devfs.sh %k %b %n", NAME="%k", SYMLINK+="%c{2} %c{1}"
> BUS="scsi", KERNEL=="st[0-9]*",     PROGRAM="/etc/udev/scripts/scsi-
> devfs.sh %k %b %n", NAME="%k", SYMLINK+="%c{2} %c{1}"
> BUS="scsi", KERNEL=="nst[0-9]*",        PROGRAM="/etc/udev/scripts/scsi-
> devfs.sh %k %b %n", NAME="%k", SYMLINK+="%c{2} %c{1}"
>
>
>
>
> #-------------------------------------------------
> # Multimedia
>
> # DRI:
> KERNEL=="card[0-9]*",
> NAME="dri/card%n",      GROUP="video"
>
> KERNEL=="nvidia*",                              NAME="%k",                      GROUP="video"
>
> KERNEL=="3dfx*",                                        NAME="%k",                      GROUP="video"
>
> # DVB:
> # kernel up to 2.6.8:
> KERNEL=="dvb*",
> PROGRAM="/etc/udev/scripts/dvb.sh %k", NAME="%c",       GROUP="video"
> # kernel-2.6.9+ :
> KERNEL=="dvb[0-9].dvr*",        NAME="dvb/adapter%n/dvr%n",
> GROUP="video"
> KERNEL=="dvb[0-9].demux*",      NAME="dvb/adapter%n/demux%n",
> GROUP="video"
> KERNEL=="dvb[0-9].frontend*",
> NAME="dvb/adapter%n/frontend%n",        GROUP="video"
> KERNEL=="dvb[0-9].audio*",      NAME="dvb/adapter%n/audio%n",
> GROUP="video"
> KERNEL=="dvb[0-9].ca*",
> NAME="dvb/adapter%n/ca%n",      GROUP="video"
> KERNEL=="dvb[0-9].osd*",        NAME="dvb/adapter%n/osd%n",
> GROUP="video"
> KERNEL=="dvb[0-9].net*",        NAME="dvb/adapter%n/net%n",
> GROUP="video"
> KERNEL=="dvb[0-9].video*",      NAME="dvb/adapter%n/video%n",
> GROUP="video"
>
> # Zaptel device:
> KERNEL=="zapctl",                       NAME="zap/ctl"
> KERNEL=="zaptimer",                     NAME="zap/timer"
> KERNEL=="zapchannel",                   NAME="zap/channel"
> KERNEL=="zappseudo",                    NAME="zap/pseudo"
> KERNEL=="zap[0-9]*",                    NAME="zap/%n"
>
> # v4l devices
> SUBSYSTEM="video4linux", GROUP="video"
> KERNEL=="video0",
> SYMLINK+="video",
> GROUP="video"
> KERNEL=="video[0-9]*",                  NAME="v4l/video%n",
> SYMLINK+="video%n",     GROUP="video"
> KERNEL=="radio0",
> SYMLINK+="radio",
> GROUP="video"
> KERNEL=="radio[0-9]",
> SYMLINK+="v4l/radio%n",                                 GROUP="video"
> KERNEL=="vbi0",
> SYMLINK+="vbi",
> GROUP="video"
> #KERNEL=="vbi[0-9]",                            SYMLINK+="v4l/vbi%n",
> GROUP="video"
> KERNEL=="vbi[0-9]*",                        NAME="v4l/vbi%n",
> SYMLINK+="vbi%n",       GROUP="video"
> KERNEL=="vtx0",
> SYMLINK+="vtx",
> GROUP="video"
> KERNEL=="vtx[0-9]",
> SYMLINK+="v4l/vtx%n",                                   GROUP="video"
>
> KERNEL=="em8300",                               NAME="video/%k"
> KERNEL=="em8300_ma",                            NAME="video/%k"
> KERNEL=="em8300_mv",                            NAME="video/%k"
> KERNEL=="em8300_sp",                            NAME="video/%k"
>
> #-------------------------------------------------
> # Input
>
> # legacy devices:
> KERNEL=="psaux",                                        SYMLINK+="misc/%k"
> KERNEL=="psaux",                                        SYMLINK+="psmouse"
> KERNEL=="mice",
> NAME="input/%k",        SYMLINK+="usbmouse", MODE="0644"
>
> KERNEL=="mouse[0-9]*",                  NAME="input/%k",                                                MODE="0644"
> # security => input: 644 => 600
> # else anybody logged on could read my password directly from the event
> device
> # associated with the keyboard...
>
> KERNEL=="event[0-9]*",                  NAME="input/%k",                                                MODE="0600"
> KERNEL=="js0",                                  NAME="input/%k",        SYMLINK+="js
> js0",              MODE="0664"
>
> KERNEL=="js[1-9]",                              NAME="input/%k",        SYMLINK+="js%n",                MODE="0664"
> KERNEL=="ts*",                                  NAME="input/%k",
> MODE="0600"
>
>
> # usb devices:
> KERNEL=="hiddev",                               NAME="usb/%k"
> KERNEL=="auer*",                                        NAME="usb/%k"
> KERNEL=="dabusb*",                              NAME="usb/%k"
> KERNEL=="legousbtower*",                        NAME="usb/%k", GROUP="usb"
> BUS="usb", KERNEL=="cpad[0-9]*",        NAME="usb/%k"
>
>
>
> #-------------------------------------------------
> # Char devices
>
> # tty devices
> KERNEL=="console",      NAME="%k", GROUP="tty",
> MODE="0600",      OPTIONS+="last_rule"
> KERNEL=="tty",                                  NAME="%k",              SYMLINK+="vc/0
> tty0", GROUP="tty", MODE="0666", OPTIONS="last_rule"
> KERNEL=="tty[0-9]*",                            SYMLINK+="vc/%n",
> GROUP="tty", OPTIONS="last_rule"
> KERNEL=="dcbri*",       NAME="%k", GROUP="tty"
> KERNEL=="ircomm*",      NAME="%k", GROUP="tty"
>
> # vc devices
> KERNEL=="vcs",                                  SYMLINK+="vcc/0",
> GROUP="tty", OPTIONS="last_rule"
> KERNEL=="vcs[1-9]*",                            SYMLINK+="vcc/%n",                                      GROUP="tty",
> OPTIONS="last_rule"
> KERNEL=="vcsa",
> NAME="%k",      SYMLINK+="vcc/a0 vcsa0",        GROUP="tty",
> OPTIONS="last_rule"
> KERNEL=="vcsa[0-9]*",
> SYMLINK+="vcc/a%n",                                     GROUP="tty",
> OPTIONS="last_rule"
>
> # ignore the events generated by virtual consoles:
> SUBSYSTEM=="vc",        OPTIONS+="last_rule"
>
> # pty devices:
> KERNEL=="tty[p-za-e][0-9a-f]*", NAME="pty/s%n",
> SYMLINK+="%k",  GROUP="tty", OPTIONS="last_rule"
> KERNEL=="pty[p-za-e][0-9a-f]*", NAME="pty/m%n",
> SYMLINK+="%k",  GROUP="tty", OPTIONS="last_rule"
> KERNEL=="ptmx",
> NAME="%k",                                              GROUP="tty",
> MODE="0666", OPTIONS="last_rule"
>
> KERNEL=="ttyS[0-9]*",                   SYMLINK+="tts/%n", GROUP="uucp",
> OPTIONS="last_rule"
> KERNEL=="ttyUSB[0-9]*", SYMLINK+="tts/USB%n", GROUP="tty", MODE="0600"
> KERNEL=="ttyUSB[0-9]*",                 SYMLINK+="usb/tts/%n"
>
> # aoe char devices,
> SUBSYSTEM="aoe", KERNEL=="discover",    NAME="etherd/%k", GROUP="disk",
> MODE="0220"
> SUBSYSTEM="aoe", KERNEL=="err",         NAME="etherd/%k", GROUP="disk",
> MODE="0440"
> SUBSYSTEM="aoe", KERNEL=="interfaces",  NAME="etherd/%k", GROUP="disk",
> MODE="0220"
>
> # memory devices
> KERNEL=="random",       NAME="%k", MODE="0666"
> KERNEL=="urandom",      NAME="%k", MODE="0444"
> KERNEL=="mem",          NAME="%k", MODE="0640"
> KERNEL=="kmem",         NAME="%k", MODE="0640"
> KERNEL=="port",         NAME="%k", MODE="0640"
> KERNEL=="full",         NAME="%k", MODE="0666"
> KERNEL=="null",         NAME="%k", MODE="0666"
> KERNEL=="zero",         NAME="%k", MODE="0666"
>
> # /misc devices:
> KERNEL=="agpgart",                              SYMLINK+="misc/agpgart",
> GROUP="video"
> KERNEL=="apm_bios",                             SYMLINK+="misc/apm_bios"
> KERNEL=="rtc",                                  SYMLINK+="misc/rtc",
> MODE="0664"
> KERNEL=="dmapi",                                        SYMLINK+="misc/%k"
> KERNEL=="dac960_gam",                   SYMLINK+="misc/%k"
> KERNEL=="vmmon",                                        SYMLINK+="misc/%k"
> KERNEL=="inotify",                              NAME="misc/%k",
> SYMLINK+="%k", MODE="0666"
>
> KERNEL=="i2c-[0-9]*",                   SYMLINK+="i2c/%n"
>
> KERNEL=="lirc",                                 SYMLINK+="lirc/lirc%n"
> KERNEL=="lirc[1-9]",                            SYMLINK+="lirc/%k"
>
> KERNEL=="fb[1-9]*",                             SYMLINK+="fb/%n",
> GROUP="video"
>
>
>
> #-------------------------------------------------
> # Sound devices
>
> SUBSYSTEM="sound", GROUP="audio"
>
> KERNEL=="admmidi",                              SYMLINK+="sound/admmidi",
> GROUP="audio"
> KERNEL=="admmidi[1-9]",                 SYMLINK+="sound/admmidi%n",
> GROUP="audio"
> KERNEL=="adsp",
> SYMLINK+="sound/adsp",          GROUP="audio"
>
> KERNEL=="adsp[1-9]",                            SYMLINK+="sound/adsp%n",                GROUP="audio"
> KERNEL=="amidi",                                        SYMLINK+="sound/amidi",
> GROUP="audio"
> KERNEL=="amidi[1-9]",                   SYMLINK+="sound/amidi%n",
> GROUP="audio"
> KERNEL=="amixer",
> SYMLINK+="sound/amixer",                GROUP="audio"
>
> KERNEL=="amixer[1-9]",                  SYMLINK+="sound/amixer%n",      GROUP="audio"
>
> KERNEL=="audio",                                        SYMLINK+="sound/audio",
> GROUP="audio"
> KERNEL=="audio[1-9]",                   SYMLINK+="sound/audio%n",
> GROUP="audio"
> KERNEL=="dmmidi",
> SYMLINK+="sound/dmmidi",                GROUP="audio"
>
> KERNEL=="dmmidi[1-9]",                  SYMLINK+="sound/dmmidi%n",      GROUP="audio"
> KERNEL=="dsp",                                  SYMLINK+="sound/dsp",
> GROUP="audio"
> KERNEL=="dsp[1-9]",
> SYMLINK+="sound/dsp%n",         GROUP="audio"
> KERNEL=="dmfm",
> SYMLINK+="sound/dmfm",          GROUP="audio"
>
> KERNEL=="dmfm[1-9]",                            SYMLINK+="sound/dmfm%n",                GROUP="audio"
> KERNEL=="midi",
> SYMLINK+="sound/midi",          GROUP="audio"
>
> KERNEL=="midi[1-9]",                            SYMLINK+="sound/midi%n",                GROUP="audio"
> KERNEL=="mixer",                                        SYMLINK+="sound/mixer",
> GROUP="audio"
> KERNEL=="mixer[1-9]",                   SYMLINK+="sound/mixer%n",
> GROUP="audio"
> KERNEL=="music",                                        SYMLINK+="sound/music",
> GROUP="audio"
> KERNEL=="music[1-9]",                   SYMLINK+="sound/music%n",
> GROUP="audio"
> KERNEL=="sequencer",                            SYMLINK+="sound/sequencer",
> GROUP="audio"
> KERNEL=="sequencer[1-9]",
> SYMLINK+="sound/%k",                    GROUP="audio"
>
>
> KERNEL=="controlC[0-9]",                        NAME="snd/%k",                          GROUP="audio"
> KERNEL=="hwC[0-9]D[0-9]",
> NAME="snd/%k",                          GROUP="audio"
> KERNEL=="midiC[0-9]D[0-9]",
> NAME="snd/%k",                          GROUP="audio"
> KERNEL=="pcmC[0-9]D[0-9]c",
> NAME="snd/%k",                          GROUP="audio"
> KERNEL=="pcmC[0-9]D[0-9]p",
> NAME="snd/%k",                          GROUP="audio"
>
> KERNEL=="timer",                                        NAME="snd/%k",                          GROUP="audio"
>
> KERNEL=="seq",                                  NAME="snd/%k",                          GROUP="audio"
>
> #-------------------------------------------------
> # Network devices
>
> KERNEL=="tun",                                  SYMLINK+="net/%k"
>
> # netlink devices:
>
> KERNEL=="route",                                        SYMLINK+="netlink/%k"
> KERNEL=="skip",                                 SYMLINK+="netlink/%k"
> KERNEL=="usersock",                             SYMLINK+="netlink/%k"
> KERNEL=="fwmonitor",                            SYMLINK+="netlink/%k"
> KERNEL=="tcpdiag",                              SYMLINK+="netlink/%k"
>
> KERNEL=="nflog",                                        SYMLINK+="netlink/%k"
> KERNEL=="xfrm",                                 SYMLINK+="netlink/%k"
> KERNEL=="arpd",                                 SYMLINK+="netlink/%k"
> KERNEL=="route6",                               SYMLINK+="netlink/%k"
> KERNEL=="ip6_fw",                               SYMLINK+="netlink/%k"
> KERNEL=="dnrtmsg",                              SYMLINK+="netlink/%k"
> KERNEL=="tap*",                                 SYMLINK+="netlink/%k"
>
> # ISDN devices
> KERNEL=="ippp0",                NAME="%k", GROUP="tty"
> KERNEL=="ippp0",                NAME="%k", GROUP="tty"
>
> # CAPI devices
> KERNEL=="capi",                                 NAME="capi20",
> SYMLINK+="isdn/capi20"
> KERNEL=="capi*",                                        NAME="capi/%n"
>
>
> #-------------------------------------------------
> # Misc permissions:
>
> # pilot/palm devices
> KERNEL=="pilot",                NAME="%k", GROUP="uucp"
>
> # jaz devices
> KERNEL=="jaz*",         NAME="%k", GROUP="disk"
>
> # zip devices
> KERNEL=="pocketzip*",   NAME="%k", GROUP="disk"
> KERNEL=="zip*",         NAME="%k", GROUP="disk"
>
> # ls120 devices
> KERNEL=="ls120",                NAME="%k", GROUP="disk"
>
> # lp devices
> SUBSYSTEM="printer",    GROUP="lp"
> KERNEL=="irlpt",                NAME="%k", GROUP="lp"
> KERNEL=="usblp",                NAME="%k", GROUP="lp"
> BUS="usb", KERNEL=="lp[0-9]*",  NAME="usb/%k",                  GROUP="lp"
> KERNEL=="lp[0-9]*",             NAME="%k",      SYMLINK+="printers/%n
> par%n",   GROUP="lp"
>
> # tape devices
> KERNEL=="ht*",          NAME="%k", GROUP="tape"
> KERNEL=="nht*",         NAME="%k", GROUP="tape"
> KERNEL=="pt*",          NAME="%k", GROUP="tape"
> KERNEL=="npt*",         NAME="%k", GROUP="tape"
> KERNEL=="st*",          NAME="%k", GROUP="tape"
> KERNEL=="nst*",         NAME="%k", GROUP="tape"
> KERNEL=="osst*",                NAME="%k", GROUP="tape"
> KERNEL=="nosst*",       NAME="%k", GROUP="tape"
>
> # diskonkey devices
> KERNEL=="diskonkey*",   NAME="%k", GROUP="disk"
>
> # rem_ide devices
> KERNEL=="microdrive*",  NAME="%k", GROUP="disk"
>
> # kbd devices
> KERNEL=="kbd",          NAME="%k", MODE="0664"
>
> # Sony Vaio Jogdial sonypi device
> KERNEL=="sonypi",       NAME="%k", MODE="0666"
>
>
> #-------------------------------------------------
> # obsolete hotplug agents:
>
> # to uncomment once we've dbus-0.3x/hal-0.5:
> # give hal events by socket instead of spawning its agent:
> #RUN+="socket:/org/freedesktop/hal/udev_event"
> # move all /etc/dev.d to event handlers:
> #RUN+="/usr/lib/hal.hotplug"
>
> # allow pci cold plug for usb controllers only
> # alias pci:v*d*sv*sd*bc0Csc03i10* ohci-hcd
> # alias pci:v*d*sv*sd*bc0Csc03i20* ehci-hcd
> # alias pci:v*d*sv*sd*bc0Csc03i00* uhci-hcd
> ACTION=="add", SUBSYSTEM=="pci", ENV{UDEV_START}=="1", MODALIAS=="*", \
>         SYSFS{class}="0x0c0300|0x0c0310|0x0c0320", \
>         RUN+="/sbin/modprobe $modalias"
> # modprobe pci devices on hot plug
> ACTION=="add", SUBSYSTEM=="pci", ENV{UDEV_START}!="1", MODALIAS=="*", \
>         RUN+="/sbin/modprobe $modalias"
>
> # libusb device access (mount usbfs or usbdev nodes)
> DEVPATH=="/module/usbcore", ACTION=="add", \
>               RUN+="/bin/sh -c 'sleep 1; /bin/mount -t usbfs -o
> devmode=0664,devgid=43 none /proc/bus/usb'"
> # usbhid should be loaded before usbmouse, or else some Microsoft mice
> move vertically only
> ACTION=="add", MODALIAS="usb:v*p*d*dc*dsc*dp*ic03isc01ip02*",
> RUN+="/sbin/modprobe usbhid"
>
> # modprobe on hot plug (and cold plug, which is processed by udevstart)
> ACTION=="add", SUBSYSTEM=="usb", MODALIAS=="*", \
>         RUN+="/sbin/modprobe $modalias"
> ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="*", \
>         RUN+="/sbin/modprobe $modalias"
> ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="*", \
>         RUN+="/bin/sh -c 'echo 1 > /sys/$DEVPATH/allow_func_id_match'"
> ACTION=="add", SUBSYSTEM=="ieee1394", MODALIAS=="*", \
>         RUN+="/sbin/modprobe $modalias"
>
>
> ACTION=="add", SUBSYSTEM=="ieee1394", MODALIAS=="*", \
>               RUN+="/sbin/modprobe $modalias"
>
> # disks & magneto-optical disk:
> ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="[07]", \
>               RUN+="/sbin/modprobe sd_mod"
>
> # enclosure:
> ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="14", \
>               RUN+="/sbin/modprobe sd_mod"
>
> # WORM & ROM:
> ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="[45]", \
>               RUN+="/sbin/modprobe sr_mod"
>
> # Tape:
> ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="1",
> SYSFS{vendor}=="Onstream", \
>               SYSFS{model}!="ADR*", RUN+="/sbin/modprobe osst"
>
> ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="1",
> SYSFS{vendor}=="Onstream", \
>               SYSFS{model}=="ADR*", RUN+="/sbin/modprobe st"
>
> ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="1",
> SYSFS{vendor}!="Onstream", \
>               RUN+="/sbin/modprobe st"
>
> # printer, scanner (hp & all), changer & comm :
> ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="[23689]", \
>               RUN+="/sbin/modprobe sg"
>
> ACTION=="add", SUBSYSTEM=="firmware", ENV{FIRMWARE}=="*", \
>               RUN+="/sbin/firmware_helper"
>
> ACTION=="add", SUBSYSTEM=="net", ENV{INTERFACE}=="*", \
>               RUN+="/sbin/udev_net_helper"
>
> ACTION=="remove", SUBSYSTEM=="net", ENV{INTERFACE}=="*", \
>               RUN+="/sbin/udev_net_helper"
>
> ACTION=="add", SUBSYSTEM=="input", RUN+="/sbin/udev_input_helper"
>
> ACTION=="add", SUBSYSTEM=="ieee1394", RUN+="/sbin/udev_ieee1394_helper"
> ACTION=="remove", SUBSYSTEM=="ieee1394", RUN+="/sbin/udev_ieee1394_helper"
>
>
>
> --
> Mailing list info: http://lists.linux.it/listinfo/linuxludus
>
>
>
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: http://lists.linux.it/pipermail/linuxludus/attachments/20060203/169ca45d/attachment.htm


Maggiori informazioni sulla lista linuxludus