I updated the firmware couple of days ago. After that I've been trying in vain to copy some data from my linux (Debian box) to Samsung Galaxy J5, SM-J500F

This is the command I have been using -

─[$] sudo cp some-content /run/user/1000/gvfs/mtp:host=%5Busb%3A005%2C019%5D/Card/Android/media/Music_CD

Music CD was a directory made by me some months ago.

I get the following response -

cp: failed to access '/run/user/1000/gvfs/mtp:host=%5Busb%3A005%2C019%5D/Card/Android/media/Music_CD': Permission denied

Any idea why permission denied error is being given even though I'm sudo.

Android version is 6.0.1 . Please let me know if more details are needed as developer options are turned on.

  • Do you have root access on your phone ? Did you root it? – esQmo_ Jun 17 '17 at 4:23
  • I haven't rooted it but sometime before I was able to copy effortlessely, without the need of root access. – shirish Jun 17 '17 at 10:02
  • 1
    It was working on lower versions of Android not Marshmallow – esQmo_ Jun 17 '17 at 10:04
  • I think it was working on marshmallow too, but not the most recent update. – shirish Jun 18 '17 at 12:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.