From owner-svn-doc-all@FreeBSD.ORG Thu Nov 1 03:53:41 2012 Return-Path: Delivered-To: svn-doc-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E222D1CC; Thu, 1 Nov 2012 03:53:41 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id BFE838FC0A; Thu, 1 Nov 2012 03:53:41 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id qA13rfr8010956; Thu, 1 Nov 2012 03:53:41 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id qA13rf2C010954; Thu, 1 Nov 2012 03:53:41 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201211010353.qA13rf2C010954@svn.freebsd.org> From: Eitan Adler Date: Thu, 1 Nov 2012 03:53:41 +0000 (UTC) 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 X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Nov 2012 03:53:42 -0000 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" - How do I let ordinary users mount floppies, CD-ROMs and - other removable media? + How do I let ordinary users mount CD-ROMs, DVDs, + USB drives, and other removable media? - Ordinary users can be permitted to mount devices. Here - is how: + As root set the sysctl variable + vfs.usermount to + 1. - - - As root set the sysctl variable - vfs.usermount to - 1. + &prompt.root; sysctl -w vfs.usermount=1 - &prompt.root; sysctl -w vfs.usermount=1 - - - - As root assign the appropriate - permissions to the block device associated with the - removable media. + To make this persist across reboots, add the line + vfs.usermount=1 to + /etc/sysctl.conf so that + it is reset at system boot time. - For example, to allow users to mount the first - floppy drive, use: + Users can only mount devices they have read + permissions to. To allow users to mount a device + permissions must be set in + /etc/devfs.conf. - &prompt.root; chmod 666 /dev/fd0 + For example, to allow users to mount the first USB + drive add: - To allow users in the group - operator to mount the CD-ROM - drive, use: - - &prompt.root; chgrp operator /dev/acd0c -&prompt.root; chmod 640 /dev/acd0c - - - - You will need to alter - /etc/devfs.conf to make these - changes permanent across reboots. - - As root, add the necessary - lines to /etc/devfs.conf. For - example, to allow users to mount the first floppy drive - add: - - # Allow all users to mount the floppy disk. -own /dev/fd0 root:operator -perm /dev/fd0 0666 - - To allow users in the group - operator to mount the CD-ROM drive - add: - - # Allow members of the group operator to mount CD-ROMs. -own /dev/acd0 root:operator -perm /dev/acd0 0660 - - - - Finally, add the line - vfs.usermount=1 to - the file /etc/sysctl.conf so that - it is reset at system boot time. - - - - All users can now mount the floppy - /dev/fd0 onto a directory that they - own: - - &prompt.user; mkdir ~/my-mount-point -&prompt.user; mount -t msdosfs /dev/fd0 ~/my-mount-point + # Allow all users to mount a USB drive. + own /dev/da0 root:operator + perm /dev/da00 0666 - Users in group operator can now - mount the CD-ROM /dev/acd0c onto a - directory that they own: + All users can now mount devices they could read + onto a directory that they own: &prompt.user; mkdir ~/my-mount-point -&prompt.user; mount -t cd9660 /dev/acd0c ~/my-mount-point +&prompt.user; mount -t msdosfs /dev/da0~/my-mount-point Unmounting the device is simple: