On 6/9/07, Timothy Wilson <[EMAIL PROTECTED]> wrote:
Hello, I'm having great difficulty allowing my users to mount the cdrom. I've looked in the faq and both fstab and mount manpages, but still can't find it! I think the GNU tools allow:
Hello Tim: I got user mount of the CDROM to work as follows: 1) Edit /etc/sysctl.conf and insert kern.usermount=1 2) As root, do # mkdir /cdrom # cd /cdrom # mkdir tim (assuming the user account is named tim) 3) Do: # chown tim /cdrom/tim this is based on the comment from: _______________________________________________ http://monkey.org/openbsd/archive/misc/0309/msg01664.html /* * If the user is not root, ensure that they own the directory * onto which we are attempting to mount. */ 4) Edit /etc/fstab and insert the following line: /dev/cd0a /cdrom/tim cd9660 ro,noauto 0 0 5) Add the user tim to the operator group, in /etc/group like so: operator:*:5:root,tim ------------------------------------------------------------------------- To make a user mountable thumb drive: 1) Make sure /etc/sysctl.conf has: kern.usermount=1 2) As root, do # mkdir /thumb # cd /cdrom # mkdir tim (assuming the user account is named bsd) 3) Do: # chown tim /thumb/tim Again see: http://monkey.org/openbsd/archive/misc/0309/msg01664.html for the details. 4) Edit /etc/fstab and insert the following line: /dev/sd0i /thumb/tim msdos rw,noauto 0 0 5) Again, make sure the user tim is in the operator group, in /etc/group like so: operator:*:5:root,tim 6) Last step, do # chmod g+w /dev/sd0i (sd0i is the mount point for the USB thumb drive) -- Kind regards, Jonathan