Date: Fri, 14 Feb 2014 00:47:18 -0500 From: Michael Powell <nightrecon@hotmail.com> To: freebsd-questions@freebsd.org Subject: Re: Can't Mount USB Drive As User Under FreeBSD 10 Message-ID: <ldkakr$5cr$1@ger.gmane.org> References: <CAP7QzkPx8Q1V8U1wAdBGZkDu-d94wPBZtfYV-R7XHewyCi_SmQ@mail.gmail.com> <20140214132150.6d7db9d0@X220.alogt.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Erich Dollansky wrote: > Hi, > > On Fri, 14 Feb 2014 04:39:46 +0000 > B J <va6bmj@gmail.com> wrote: > >> I've had problems configuring the machine to mount external USB >> drives. I can mount USB thumb drives when logged in as root using: >> >> mount -t msdosfs -o -m=644,-M=755 /dev/da0s1 /mnt/root > > this hints that just some of your access rights are wrong. Just ask a > search engine for allowing user to mount devices. > > You need to be able to read and write to /dev/da0s1 as a user if you > want to allow users to mount it. [snip] These permissions are generally set in /etc/devfs.conf. Check out the man page for devfs.conf. In the Handbook is some more info regarding the use of devfs.rules: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/usb-disks.html You may need to place vfs.usermount=1 in your sysctl.conf as well. I've only ever used the devfs.conf in the past for very simple configs on machines only I control, which is probably not a very secure approach. Perhaps the additional devfs.rules (it has a man page too) info from the Handbook page is a better way to go as it seems like it has better security in mind. -Mike
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ldkakr$5cr$1>