p2p-adb icon indicating copy to clipboard operation
p2p-adb copied to clipboard

Permission denied in terminal (Lollipop)

Open Mu99u opened this issue 9 years ago • 7 comments

Hi Kos, hats off to ur efforts really nice project..I have moto g 1st gen with lollipop.. I tried the method as in terminal I typed su then #/sdcard/p2p-adb-master/run.sh but it shows permission denied :( ..plz help..

Mu99u avatar Apr 09 '15 15:04 Mu99u

Did you remember to set the executable bit on run.sh?

denzuko avatar Apr 22 '15 22:04 denzuko

@Mu99u & @denzuko i found a solution ,if you copy it to the root of our phone like /data/local (which was what i used) it works but if i leave it on the sdcard i get permission denied

duramato avatar Aug 22 '15 13:08 duramato

@duramato good find on the work around. but what caused this? Is the sdcard being mounted noexec? What about file permissions and acl policies?

denzuko avatar Aug 26 '15 15:08 denzuko

@denzuko yes i believe its from the noexec part that blocks any execution of scripts ,etc from there

duramato avatar Aug 26 '15 15:08 duramato

Well if that's the case, then wouldn't a better work around be to execute mount -o remount,exec /sdcard?

denzuko avatar Aug 26 '15 21:08 denzuko

that does seem to work on my device i believe the sdcard is emulated

duramato avatar Aug 26 '15 22:08 duramato

@kosborn Looks like we can close this one as resolved

denzuko avatar Mar 23 '16 18:03 denzuko