In the USB disks part: the use of a devfs.rules(5) rule requires a

ruleset declaration.  This ruleset also needs to be enabled in
/etc/rc.conf
This commit is contained in:
Marc Fonvieille 2007-03-11 11:47:42 +00:00
parent 8474e8d299
commit c6000d645b
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=29768

View file

@ -816,18 +816,19 @@ da0: 126MB (258048 512 byte sectors: 64H 32S/T 126C)</screen>
a member of the <groupname>operator</groupname> group. This
is done with &man.pw.8;. Second, when the devices are
created, the <groupname>operator</groupname> group should be
able to read and write them. This is accomplished by adding a
line for these devices to
able to read and write them. This is accomplished by adding
these lines to
<filename>/etc/devfs.rules</filename>:</para>
<programlisting>add path 'da*' mode 0660 group operator</programlisting>
<programlisting>[localrules=1]
add path 'da*' mode 0660 group operator</programlisting>
<note>
<para>If there already are SCSI disks in the system, it must
be done a bit different. E.g., if the system already
contains disks <devicename>da0</devicename> through
<devicename>da2</devicename> attached to the system, change
the line as follows:</para>
the second line as follows:</para>
<programlisting>add path 'da[3-9]*' mode 0660 group operator</programlisting>
@ -836,6 +837,11 @@ da0: 126MB (258048 512 byte sectors: 64H 32S/T 126C)</screen>
group.</para>
</note>
<para>You also have to enable your &man.devfs.rules.5;; ruleset
in your <filename>/etc/rc.conf</filename> file:</para>
<programlisting>devfs_system_ruleset="localrules"</programlisting>
<para>Next, the kernel has to be configured to allow regular
users to mount file systems. The easiest way is to add the
following line to