New FAQ entry on how to allow users to mount devices.
Reviewed by: -doc (content), nik (DocBook expertise)
This commit is contained in:
parent
7c3a7085f5
commit
854403a247
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=5482
2 changed files with 102 additions and 4 deletions
|
@ -10,7 +10,7 @@
|
||||||
</author>
|
</author>
|
||||||
</authorgroup>
|
</authorgroup>
|
||||||
|
|
||||||
<pubdate>$Date: 1999-08-24 19:05:16 $</pubdate>
|
<pubdate>$Date: 1999-08-30 05:33:19 $</pubdate>
|
||||||
|
|
||||||
<abstract><para> This is the FAQ for FreeBSD systems version 2.X All entries are
|
<abstract><para> This is the FAQ for FreeBSD systems version 2.X All entries are
|
||||||
assumed to be relevant to FreeBSD 2.0.5 and later, unless otherwise noted.
|
assumed to be relevant to FreeBSD 2.0.5 and later, unless otherwise noted.
|
||||||
|
@ -4532,7 +4532,56 @@ userid is not the root user, it serves to firewall the process
|
||||||
off from processes owned by other users. The userid is also
|
off from processes owned by other users. The userid is also
|
||||||
used to firewall off on-disk data.</para>
|
used to firewall off on-disk data.</para>
|
||||||
|
|
||||||
</answer></qandaentry></qandaset>
|
</answer></qandaentry>
|
||||||
|
|
||||||
|
<qandaentry>
|
||||||
|
<question>
|
||||||
|
<para>How do I let ordinary users mount floppies and other removable
|
||||||
|
media?</para>
|
||||||
|
</question>
|
||||||
|
|
||||||
|
<answer>
|
||||||
|
<para>Ordinary users can be permitted to mount devices. Here is
|
||||||
|
how:</para>
|
||||||
|
|
||||||
|
<procedure>
|
||||||
|
<step>
|
||||||
|
<para>As <username>root</username> assign the appropriate
|
||||||
|
permissions to the block device associated with the removable
|
||||||
|
media.</para>
|
||||||
|
|
||||||
|
<para>For example, to allow users to mount the first floppy
|
||||||
|
drive, use:</para>
|
||||||
|
|
||||||
|
<screen>&prompt.root; <userinput>chmod 777 /dev/fd0</userinput></screen>
|
||||||
|
</step>
|
||||||
|
|
||||||
|
<step>
|
||||||
|
<para>As <username>root</username> set the sysctl variable
|
||||||
|
<varname>vfs.usermount</varname> to
|
||||||
|
<literal>1</literal>.</para>
|
||||||
|
|
||||||
|
<screen>&prompt.root; <userinput>sysctl -w vfs.usermount=1</userinput></screen>
|
||||||
|
</step>
|
||||||
|
</procedure>
|
||||||
|
|
||||||
|
<para>Users can now mount <filename>/dev/fd0</filename> onto a
|
||||||
|
directory that they own:</para>
|
||||||
|
|
||||||
|
<screen>&prompt.user; <userinput> mkdir ~/my-mount-point</userinput>
|
||||||
|
&prompt.user; <userinput> mount -t msdos /dev/fd0 ~/my-mount-point</userinput></screen>
|
||||||
|
|
||||||
|
<para>Unmounting the device is simple:</para>
|
||||||
|
|
||||||
|
<screen>&prompt.user; <userinput>umount <filename>~/my-mount-point</filename></userinput></screen>
|
||||||
|
|
||||||
|
<para>Another way to access MSDOS formatted media is to use the
|
||||||
|
<ulink
|
||||||
|
url="http://www.freebsd.org/cgi/ports.cgi?query=%5Emtools-&stype=name">mtools</ulink> package in the ports collection.</para>
|
||||||
|
</answer>
|
||||||
|
</qandaentry>
|
||||||
|
|
||||||
|
</qandaset>
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
||||||
<chapter
|
<chapter
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
</author>
|
</author>
|
||||||
</authorgroup>
|
</authorgroup>
|
||||||
|
|
||||||
<pubdate>$Date: 1999-08-24 19:05:16 $</pubdate>
|
<pubdate>$Date: 1999-08-30 05:33:19 $</pubdate>
|
||||||
|
|
||||||
<abstract><para> This is the FAQ for FreeBSD systems version 2.X All entries are
|
<abstract><para> This is the FAQ for FreeBSD systems version 2.X All entries are
|
||||||
assumed to be relevant to FreeBSD 2.0.5 and later, unless otherwise noted.
|
assumed to be relevant to FreeBSD 2.0.5 and later, unless otherwise noted.
|
||||||
|
@ -4532,7 +4532,56 @@ userid is not the root user, it serves to firewall the process
|
||||||
off from processes owned by other users. The userid is also
|
off from processes owned by other users. The userid is also
|
||||||
used to firewall off on-disk data.</para>
|
used to firewall off on-disk data.</para>
|
||||||
|
|
||||||
</answer></qandaentry></qandaset>
|
</answer></qandaentry>
|
||||||
|
|
||||||
|
<qandaentry>
|
||||||
|
<question>
|
||||||
|
<para>How do I let ordinary users mount floppies and other removable
|
||||||
|
media?</para>
|
||||||
|
</question>
|
||||||
|
|
||||||
|
<answer>
|
||||||
|
<para>Ordinary users can be permitted to mount devices. Here is
|
||||||
|
how:</para>
|
||||||
|
|
||||||
|
<procedure>
|
||||||
|
<step>
|
||||||
|
<para>As <username>root</username> assign the appropriate
|
||||||
|
permissions to the block device associated with the removable
|
||||||
|
media.</para>
|
||||||
|
|
||||||
|
<para>For example, to allow users to mount the first floppy
|
||||||
|
drive, use:</para>
|
||||||
|
|
||||||
|
<screen>&prompt.root; <userinput>chmod 777 /dev/fd0</userinput></screen>
|
||||||
|
</step>
|
||||||
|
|
||||||
|
<step>
|
||||||
|
<para>As <username>root</username> set the sysctl variable
|
||||||
|
<varname>vfs.usermount</varname> to
|
||||||
|
<literal>1</literal>.</para>
|
||||||
|
|
||||||
|
<screen>&prompt.root; <userinput>sysctl -w vfs.usermount=1</userinput></screen>
|
||||||
|
</step>
|
||||||
|
</procedure>
|
||||||
|
|
||||||
|
<para>Users can now mount <filename>/dev/fd0</filename> onto a
|
||||||
|
directory that they own:</para>
|
||||||
|
|
||||||
|
<screen>&prompt.user; <userinput> mkdir ~/my-mount-point</userinput>
|
||||||
|
&prompt.user; <userinput> mount -t msdos /dev/fd0 ~/my-mount-point</userinput></screen>
|
||||||
|
|
||||||
|
<para>Unmounting the device is simple:</para>
|
||||||
|
|
||||||
|
<screen>&prompt.user; <userinput>umount <filename>~/my-mount-point</filename></userinput></screen>
|
||||||
|
|
||||||
|
<para>Another way to access MSDOS formatted media is to use the
|
||||||
|
<ulink
|
||||||
|
url="http://www.freebsd.org/cgi/ports.cgi?query=%5Emtools-&stype=name">mtools</ulink> package in the ports collection.</para>
|
||||||
|
</answer>
|
||||||
|
</qandaentry>
|
||||||
|
|
||||||
|
</qandaset>
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
||||||
<chapter
|
<chapter
|
||||||
|
|
Loading…
Reference in a new issue