FreeBSD Bugzilla – Attachment 11289 Details for
Bug 22297
The FAQ entry for users mounting removable media needs updating
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 3.61 KB, created by
mwm
on 2000-10-26 02:20:02 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
mwm
Created:
2000-10-26 02:20:02 UTC
Size:
3.61 KB
patch
obsolete
>--- book.sgml Tue Oct 17 18:17:14 2000 >+++ /tmp/book.sgml Wed Oct 25 20:14:12 2000 >@@ -6343,7 +6343,7 @@ > > <qandaentry> > <question> >- <para>How do I let ordinary users mount floppies and other removable >+ <para>How do I let ordinary users mount floppies, CDROMs and other removable > media?</para> > </question> > >@@ -6353,6 +6353,14 @@ > > <procedure> > <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> >+ >+ <step> > <para>As <username>root</username> assign the appropriate > permissions to the block device associated with the > removable media.</para> >@@ -6360,33 +6368,47 @@ > <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> >+ <screen>&prompt.root; <userinput>chmod 666 /dev/fd0</userinput></screen> > >- <step> >- <para>As <username>root</username> set the sysctl variable >- <varname>vfs.usermount</varname> to >- <literal>1</literal>.</para> >+ <para>To allow users in the group >+ <username>operator</username> to mount the cdrom drive, >+ use:</para> > >- <screen>&prompt.root; <userinput>sysctl -w vfs.usermount=1</userinput></screen> >+ <screen>&prompt.root; <userinput>chgrp operator /dev/cd0c</userinput> >+&prompt.root; <userinput>chmod 640 /dev/cd0c</userinput></screen> > </step> >+ >+ <step> >+ <para>Finally, add the line >+ <literal>vfs.usermount=1</literal> to the file >+ <filename>/etc/sysctl.conf</filename> so that it is reset >+ at system boot time.</para> >+ </step> > </procedure> > >- <para>Users can now mount <filename>/dev/fd0</filename> onto a >- directory that they own:</para> >+ <para>All users can now mount the floppy >+ <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>Users in group <username>operator</username> can now >+ mount the cdrom <filename>/dev/cd0c</filename> onto a >+ directory that they own:</para> >+ >+ <screen>&prompt.user; <userinput> mkdir ~/my-mount-point</userinput> >+&prompt.user; <userinput> mount -t msdos /dev/cd0c ~/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>Enabling <varname>vfs.usermount</varname>, however, has > negative security implications. A better 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> >+ formatted media (<emphasis>not CDROMs</emphasis>) 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>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 22297
: 11289