From owner-freebsd-questions@FreeBSD.ORG Thu Feb 26 18:09:31 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 20422453 for ; Thu, 26 Feb 2015 18:09:31 +0000 (UTC) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D2631D32 for ; Thu, 26 Feb 2015 18:09:30 +0000 (UTC) Received: from r56.edvax.de (port-92-195-131-196.dynamic.qsc.de [92.195.131.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 34AC524D69; Thu, 26 Feb 2015 19:09:22 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t1QI9Lrk040526; Thu, 26 Feb 2015 19:09:21 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Thu, 26 Feb 2015 19:09:21 +0100 From: Polytropon To: "William A. Mahaffey III" Subject: Re: problems mounting camera to download pics .... Message-Id: <20150226190921.94278d64.freebsd@edvax.de> In-Reply-To: <54EF601F.3070702@hiwaay.net> References: <54EF5A28.8010605@hiwaay.net> <20150226183930.477ed7b5.freebsd@edvax.de> <54EF601F.3070702@hiwaay.net> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions !!!! 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: Thu, 26 Feb 2015 18:09:31 -0000 On Thu, 26 Feb 2015 12:04:15 -0600, William A. Mahaffey III wrote: > On 02/26/15 11:39, Polytropon wrote: > > On Thu, 26 Feb 2015 11:38:48 -0600, 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 % > > And with "sudo" prefix? :-) > > [wam@kabini1, ~, 11:58:22am] 568 % mount /media/flash/ > mount_msdosfs: /dev/da0s1: Operation not permitted > [wam@kabini1, ~, 11:58:25am] 569 % sudo mount /media/flash/ > mount_msdosfs: /dev/da0s1: mount option is unknown: Invalid argument > [wam@kabini1, ~, 11:58:27am] 570 % I didn't find the "users" option in "man mount" or "man mount_msdosfs", what is it supposed to do? What if you temporarily remove it? > >> relevant lines from my fstab file: > >> > >> > >> /dev/da0s1 /media/flash msdosfs > >> rw,sync,noauto,longnames,-Lru_RU.UTF-8,users 0 0 > > Suggestion regarding msdosfs: add "-m=644,-M=755" to the > > options to get rid of the fake +x attributes for the files. > > You could also add "noatime". > > Roger, wilco .... Not essential to solve the problem, but might be helpful for further usage. > >> 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 ;-) .... > > Do you have the mandatory "vfs.usermount=1" in /etc/sysctl.conf? > > Also check the device permissions: User or group requires rw for > > the device and must own the mountpoint. > > .... & remember to change it in the command line as well, done, still > the same problem .... my root dir: > > > [wam@kabini1, ~, 12:01:36pm] 570 % ll / > total 32890 > [...] > drwxr-xr-x 5 root wheel 512 Oct 26 08:01 media/ > [...] > So am I supposed to have /media group writable ? I did so & same issue .... I think so. You can test this by temporarily chown'ing the whole /media subtree to your user, and then run the command as user (given that vfs.usermount is already set). You can find more info here (regarding user mount): https://www.freebsd.org/doc/handbook/usb-disks.html -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...