From owner-freebsd-questions@FreeBSD.ORG Fri Feb 27 21:56:28 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 723B8F64 for ; Fri, 27 Feb 2015 21:56:28 +0000 (UTC) Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de [80.67.31.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2F8E3F51 for ; Fri, 27 Feb 2015 21:56:27 +0000 (UTC) Received: from [80.67.16.118] (helo=webmail.df.eu) by smtprelay02.ispgateway.de with esmtpa (Exim 4.84) (envelope-from ) id 1YRStO-0001sh-GG for freebsd-questions@freebsd.org; Fri, 27 Feb 2015 22:56:18 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 27 Feb 2015 22:56:18 +0100 From: Markus Hoenicka To: freebsd-questions@freebsd.org Subject: Re: problems mounting camera to download pics .... In-Reply-To: <5161492.5f10mYJAFX@amd.asgard.uk> References: <54EF5A28.8010605@hiwaay.net> <54EFA8DE.9050909@hiwaay.net> <5161492.5f10mYJAFX@amd.asgard.uk> Message-ID: X-Sender: markus.hoenicka@mhoenicka.de User-Agent: Roundcube Webmail X-Df-Sender: bWFya3VzLmhvZW5pY2thQG1ob2VuaWNrYS5kZQ== X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2015 21:56:28 -0000 Am 2015-02-27 22:33, schrieb Dave: > On Thursday 26 February 2015 17:14:38 William A. Mahaffey III wrote: >> On 02/26/15 15:54, Adam Vande More wrote: >> > On Thu, Feb 26, 2015 at 11:38 AM, William A. Mahaffey III >> > >> > wrote: >> >> .... I am trying to mount my digital camera to download some pics I just >> >> took. When I do this as root, it works AOK & I got the pics off. However, >> >> when I changed my fstab file to (supposedly) allow regular users to mount >> >> that directory, the mount command fails: >> >> >> >> >> >> [wam@kabini1, ~, 11:33:11am] 530 % mount /media/flash/ >> >> mount_msdosfs: /dev/da0s1: Operation not permitted >> >> [wam@kabini1, ~, 11:35:58am] 530 % >> >> >> >> >> >> relevant lines from my fstab file: >> >> >> >> >> >> /dev/da0s1 /media/flash msdosfs >> >> rw,sync,noauto,longnames,-Lru_RU.UTF-8,users 0 0 >> >> # /dev/da0s1 /media/flash msdosfs >> >> rw,sync,noauto,longnames,-Lru_RU.UTF-8 0 0 >> >> >> >> >> >> FreeBSD 9.3-RELEASE-p9 >> >> >> >> Not a huge issue, since I can get 'er done as root, but I don't see why >> >> this shouldn't be feasible as a regular user .... TIA & have a nice, >> >> snowy >> >> (here) day ;-) .... >> > >> > sysctl vfs.usermount=1 >> >> Already tried, didn't work, however someone else suggested setuid on >> /sbin/(u)mount & that worked .... Thanks :-) .... > > Rather than giving every user root level access to mount (possible > security > issue), the more correct way is to create devfs rules, see the FreeBSD > Handbook: > > https://www.freebsd.org/doc/en/books/handbook/usb-disks.html > I've done something along these lines to make my camera accessible from FreeBSD, see this blog entry here: http://www.mhoenicka.de/system-cgi/blog/index.php?itemid=2234 hope this helps Markus -- Markus Hoenicka http://www.mhoenicka.de AQ score 38