From owner-freebsd-questions@FreeBSD.ORG Fri Feb 14 05:47:36 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9CF1C2F2 for ; Fri, 14 Feb 2014 05:47:36 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 57F381166 for ; Fri, 14 Feb 2014 05:47:36 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WEBcb-0006OB-DO for freebsd-questions@freebsd.org; Fri, 14 Feb 2014 06:47:33 +0100 Received: from pool-173-79-82-127.washdc.fios.verizon.net ([173.79.82.127]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Feb 2014 06:47:33 +0100 Received: from nightrecon by pool-173-79-82-127.washdc.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Feb 2014 06:47:33 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Subject: Re: Can't Mount USB Drive As User Under FreeBSD 10 Date: Fri, 14 Feb 2014 00:47:18 -0500 Lines: 34 Message-ID: References: <20140214132150.6d7db9d0@X220.alogt.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-173-79-82-127.washdc.fios.verizon.net User-Agent: KNode/4.12.1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: nightrecon@hotmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Feb 2014 05:47:36 -0000 Erich Dollansky wrote: > Hi, > > On Fri, 14 Feb 2014 04:39:46 +0000 > B J 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