Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Nov 2012 03:53:41 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r39888 - head/en_US.ISO8859-1/books/faq
Message-ID:  <201211010353.qA13rf2C010954@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Thu Nov  1 03:53:41 2012
New Revision: 39888
URL: http://svn.freebsd.org/changeset/doc/39888

Log:
  People havn't cared about floppies in ages so convert to using
  da0 instead of fd0
  
  Worse though is the continued reference to block devices
  which havn't existed since the 3.x days.
  
  Approved by:	bcr (mentor)

Modified:
  head/en_US.ISO8859-1/books/faq/book.xml

Modified: head/en_US.ISO8859-1/books/faq/book.xml
==============================================================================
--- head/en_US.ISO8859-1/books/faq/book.xml	Wed Oct 31 21:24:52 2012	(r39887)
+++ head/en_US.ISO8859-1/books/faq/book.xml	Thu Nov  1 03:53:41 2012	(r39888)
@@ -5278,85 +5278,39 @@ C:\="DOS"</programlisting>
 
       <qandaentry>
 	<question id="user-floppymount">
-	  <para>How do I let ordinary users mount floppies, CD-ROMs and
-	    other removable media?</para>
+	  <para>How do I let ordinary users mount CD-ROMs, DVDs,
+	    USB drives, and other removable media?</para>
 	</question>
 
 	<answer>
-	  <para>Ordinary users can be permitted to mount devices.  Here
-	    is how:</para>
+	  <para>As <username>root</username> set the sysctl variable
+	    <varname>vfs.usermount</varname> to
+	    <literal>1</literal>.</para>
 
-	  <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>
 
-	      <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>
+	  <para>To make this persist across reboots, add the line
+	    <literal><varname>vfs.usermount</varname>=1</literal> to
+	    <filename>/etc/sysctl.conf</filename> so that
+	    it is reset at system boot time.</para>
 
-	      <para>For example, to allow users to mount the first
-		floppy drive, use:</para>
+	  <para>Users can only mount devices they have read
+	    permissions to.  To allow users to mount a device
+	    permissions must be set in
+	    <filename>/etc/devfs.conf</filename>.</para>
 
-	      <screen>&prompt.root; <userinput>chmod 666 /dev/fd0</userinput></screen>
+	  <para>For example, to allow users to mount the first USB
+	    drive add:</para>
 
-	      <para>To allow users in the group
-		<groupname>operator</groupname> to mount the CD-ROM
-		drive, use:</para>
-
-	      <screen>&prompt.root; <userinput>chgrp operator /dev/acd0c</userinput>
-&prompt.root; <userinput>chmod 640 /dev/acd0c</userinput></screen>
-	    </step>
-
-	    <step>
-	      <para>You will need to alter
-		<filename>/etc/devfs.conf</filename> to make these
-		changes permanent across reboots.</para>
-
-	      <para>As <username>root</username>, add the necessary
-		lines to <filename>/etc/devfs.conf</filename>.  For
-		example, to allow users to mount the first floppy drive
-		add:</para>
-
-	      <programlisting># Allow all users to mount the floppy disk.
-own       /dev/fd0	  root:operator
-perm      /dev/fd0	  0666</programlisting>
-
-	      <para>To allow users in the group
-		<groupname>operator</groupname> to mount the CD-ROM drive
-		add:</para>
-
-	      <programlisting># Allow members of the group operator to mount CD-ROMs.
-own       /dev/acd0	  root:operator
-perm      /dev/acd0	  0660</programlisting>
-	    </step>
-
-	    <step>
-	      <para>Finally, add the line
-		<literal><varname>vfs.usermount</varname>=1</literal> to
-		the file <filename>/etc/sysctl.conf</filename> so that
-		it is reset at system boot time.</para>
-	    </step>
-	  </procedure>
-
-	  <para>All users can now mount the floppy
-	    <devicename>/dev/fd0</devicename> onto a directory that they
-	    own:</para>
-
-	  <screen>&prompt.user; <userinput>mkdir <replaceable>~/my-mount-point</replaceable></userinput>
-&prompt.user; <userinput>mount -t msdosfs /dev/fd0 <replaceable>~/my-mount-point</replaceable></userinput></screen>
+	  <programlisting># Allow all users to mount a USB drive.
+	    own       /dev/da0       root:operator
+	    perm      /dev/da00       0666</programlisting>
 
-	  <para>Users in group <groupname>operator</groupname> can now
-	    mount the CD-ROM <devicename>/dev/acd0c</devicename> onto a
-	    directory that they own:</para>
+	  <para>All users can now mount devices they could read
+	    onto a directory that they own:</para>
 
 	  <screen>&prompt.user; <userinput>mkdir <replaceable>~/my-mount-point</replaceable></userinput>
-&prompt.user; <userinput>mount -t cd9660 /dev/acd0c <replaceable>~/my-mount-point</replaceable></userinput></screen>
+&prompt.user; <userinput>mount -t msdosfs /dev/da0<replaceable>~/my-mount-point</replaceable></userinput></screen>
 
 	  <para>Unmounting the device is simple:</para>
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211010353.qA13rf2C010954>