From owner-freebsd-questions@FreeBSD.ORG Thu Feb 26 17:58:01 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 A1303E66 for ; Thu, 26 Feb 2015 17:58:01 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (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 6790CBD1 for ; Thu, 26 Feb 2015 17:58:01 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-19-65.adsl.hiwaay.net [216.180.19.65]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t1QHvx2W021294 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 26 Feb 2015 11:58:00 -0600 Message-ID: <54EF601F.3070702@hiwaay.net> Date: Thu, 26 Feb 2015 12:04:15 -0600 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: "FreeBSD Questions !!!!" Subject: Re: problems mounting camera to download pics .... References: <54EF5A28.8010605@hiwaay.net> <20150226183930.477ed7b5.freebsd@edvax.de> In-Reply-To: <20150226183930.477ed7b5.freebsd@edvax.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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 17:58:01 -0000 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 % > > >> 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 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 dr-xr-xr-x 4 root wheel 512 Feb 26 01:50 .amd_mnt/ -rw-r--r-- 2 root wheel 1182 Oct 12 13:27 .cshrc -rw-r--r-- 2 root wheel 253 Jul 10 2014 .profile drwxrwxr-x 2 root operator 512 Aug 2 2014 .snap/ -r-------- 1 root wheel 33554432 Aug 2 2014 .sujournal -r--r--r-- 1 root wheel 6197 Jul 10 2014 COPYRIGHT drwxr-xr-x 2 root wheel 1024 Jul 10 2014 bin/ drwxr-xr-x 10 root wheel 1024 Feb 20 16:38 boot/ drwxr-xr-x 3 root wheel 512 Feb 24 23:14 compat/ dr-xr-xr-x 10 root wheel 512 Feb 20 09:57 dev/ -rw------- 1 root wheel 4096 Dec 3 07:43 entropy drwxr-xr-x 21 root wheel 3072 Feb 22 09:15 etc/ drwxr-xr-x 6 root wheel 512 Jan 26 22:31 home/ dr-xr-xr-x 2 root wheel 512 Feb 20 17:46 host/ drwxr-xr-x 3 root wheel 1536 Feb 20 15:55 lib/ drwxr-xr-x 3 root wheel 512 Aug 2 2014 libexec/ drwxr-xr-x 5 root wheel 512 Oct 26 08:01 media/ drwxr-xr-x 2 root wheel 512 Jul 10 2014 mnt/ dr-xr-xr-x 2 root wheel 512 Feb 26 11:59 net/ dr-xr-xr-x 1 root wheel 0 Feb 26 12:01 proc/ drwxr-xr-x 2 root wheel 2560 Oct 28 10:33 rescue/ drwxr-xr-x 15 root wheel 1024 Feb 22 09:14 root/ drwxr-xr-x 2 root wheel 2560 Oct 28 10:33 sbin/ lrwxr-xr-x 1 root wheel 11 Jul 10 2014 sys@ -> usr/src/sys drwxrwxrwt 10 root wheel 440 Feb 26 12:01 tmp/ drwxr-xr-x 16 root wheel 512 Aug 2 2014 usr/ drwxr-xr-x 25 root wheel 512 Feb 20 09:57 var/ [wam@kabini1, ~, 12:01:39pm] 571 % So am I supposed to have /media group writable ? I did so & same issue .... -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.