From 20181e02abb91007c21e716232599fd50aa44b87 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Thu, 1 Nov 2012 03:53:41 +0000 Subject: [PATCH] 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) --- en_US.ISO8859-1/books/faq/book.xml | 90 ++++++++---------------------- 1 file changed, 22 insertions(+), 68 deletions(-) diff --git a/en_US.ISO8859-1/books/faq/book.xml b/en_US.ISO8859-1/books/faq/book.xml index cafe2fcead..e204aae990 100644 --- a/en_US.ISO8859-1/books/faq/book.xml +++ b/en_US.ISO8859-1/books/faq/book.xml @@ -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 - + 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. - - As root assign the appropriate - permissions to the block device associated with the - removable media. + 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. - For example, to allow users to mount the first - floppy drive, use: + For example, to allow users to mount the first USB + drive add: - &prompt.root; chmod 666 /dev/fd0 + # Allow all users to mount a USB drive. + own /dev/da0 root:operator + perm /dev/da00 0666 - 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: + 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 msdosfs /dev/fd0 ~/my-mount-point - - Users in group operator can now - mount the CD-ROM /dev/acd0c 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: