From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id ED87713877A for ; Fri, 25 Jul 2014 03:49:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6F466E14DC; Fri, 25 Jul 2014 03:49:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D647EE145E for ; Fri, 25 Jul 2014 03:49:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id A5ECD34012A for ; Fri, 25 Jul 2014 03:49:39 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Flag: NO X-Spam-Score: 2.852 X-Spam-Level: ** X-Spam-Status: No, score=2.852 tagged_above=-999 required=5.5 tests=[AWL=-0.512, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, FSL_HELO_BARE_IP_2=2, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_NUMERIC_HELO=0.865, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=no Received: from smtp.gentoo.org ([IPv6:::ffff:127.0.0.1]) by localhost (smtp.gentoo.org [IPv6:::ffff:127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gWYwkJtrEuA9 for ; Fri, 25 Jul 2014 03:49:31 +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 smtp.gentoo.org (Postfix) with ESMTPS id D4E9C340117 for ; Fri, 25 Jul 2014 03:49:30 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XAWVY-00081c-K6 for gentoo-user@gentoo.org; Fri, 25 Jul 2014 05:49:24 +0200 Received: from 216.240.130.69 ([216.240.130.69]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Jul 2014 05:49:24 +0200 Received: from w41ter by 216.240.130.69 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Jul 2014 05:49:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: walt Subject: [gentoo-user] Re: Regular user can't mount/unmount mtpfs; root is OK Date: Thu, 24 Jul 2014 20:49:10 -0700 Message-ID: References: <20140724045934.GA8107@waltdnes.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 216.240.130.69 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: <20140724045934.GA8107@waltdnes.org> X-Archives-Salt: d00c50cf-8e87-429f-841c-bb33156d3e58 X-Archives-Hash: 2d5e81424f17e27646783b1dec053c06 On 07/23/2014 09:59 PM, Walter Dnes wrote: > I sent this a day or 2 ago, but it doesn't show up on the list for me. > Apologies to anyone seeing a duplicate. > > I'm a total noobie at mtpfs/FUSE. My "excellent adventure" started > yesterday when I got a clearout 7" tablet, and took a sample photo, and > tried mounting the tablet... no /dev/sdb to be found anywhere. I went > to "Mr. Google" for help, and found out that MTP is the "new and > improved" way of doing things. So I installed mtpfs. It works great > for root, but a regular user can't mount the tablet. The mtpfs command > immediately returns to the command prompt, with no error message or any > other info. The tablet is not mounted... > > [d531][waltdnes][~] mtpfs ~/tablet > [d531][waltdnes][~] > > Before anyone asks... > > 1) Yes, I have enabled FUSE in the kernel. At first I hadn't, but I got > a big red warning when I tried compiling mtpfs. I tweaked and rebuilt > the kernel, and rebooted, then built mtpfs. > > 2) Yes, I am a member of plugdev... > > [d531][root][~] grep plugdev /etc/group > plugdev:x:247:waltdnes,user2 > > 3) This PC uses mdev rather than udev. Could that be the problem? > > I've figured out a kludge to get around it. This involves issuing a > few commands as root. I've added them into a file in /etc/sudoers.d/ > but I'd really rather prefer a cleaner solution. > > [d531][root][~] mtpfs -o allow_other /home/waltdnes/tablet > Device 0 (VID=0bb4 and PID=2008) is UNKNOWN. > Please report this VID/PID and the device model to the libmtp development team > Android device detected, assigning default bug flags > > When I was finished, I tried... > > [d531][waltdnes][~] fusermount -u tablet > fusermount: entry for /home/waltdnes/tablet not found in /etc/mtab > > I had to unmount as root... > > [d531][root][~] fusermount -u /home/waltdnes/tablet > > I experienced similar problems with simple-mtpfs, so that's not a > solution either. Any ideas? I vaguely remember suffering through the same problem when I bought my Nexus7 tablet from google about a year ago. (My memories now are a bit fuzzy.) I believe I had to add this file manually: #cat /etc/udev/rules.d/51-android.rules SUBSYSTEM=="usb",ATTRS{idVendor}=="18d1",ATTRS{idProduct}=="4e41",MODE="0666",OWNER="wa1ter" I harvested those hex numbers from running "lsusb -v" IIRC.