I'm using Moto G4 play with Marshmallow; and CentOS 7. I'm able to mount the device and see the content as root, by using
jmtpfs. First time I used
sudo then I switched as root and then mounted, works fine on both occasions; but files are only visible for root user. personal user is not able to access the content
[shiva@jayan ~]$ sudo su - [sudo] password for shiva: Last login: Wed Dec 6 23:51:54 IST 2017 on pts/0 [root@jayan ~]# jmtpfs /media/phone/ Device 0 (VID=22b8 and PID=2e82) is UNKNOWN. Please report this VID/PID and the device model to the libmtp development team Android device detected, assigning default bug flags [root@jayan ~]# ll /media/phone/ total 0 drwxr-xr-x. 38 root root 0 Dec 3 4453203 Internal storage
But when I try to view it as my user, I get permission denied, as a dumb attempt I even tried to change user after mounting.
[shiva@jayan /]$ ll /media/phone ls: cannot access /media/phone: Permission denied [shiva@jayan /]$ cd media/ [shiva@jayan media]$ ll ls: cannot access phone: Permission denied total 0 d????????? ? ? ? ? ? phone [shiva@jayan media]$ sudo chown shiva:shiva phone [sudo] password for shiva: chown: changing ownership of ‘phone’: Function not implemented
Then I tried to mount from my user, it detected no mtp :(
[root@jayan ~]# fusermount -u /media/phone [root@jayan ~]# exit logout [shiva@jayan ~]$ jmtpfs /media/phone/ No mtp devices found.
Now my question is how to resolve this?
How to make mtp devices available for my user (or)
How to access files after mounting it as root! I tried using
sudo chmod -R 775, it ran forever :'( yet was not able to access those files