Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I tried to install ADB through the terminal on Ubuntu, it told me "permission denied":

~/android-sdks/tools/ $ ./android
bash: ./android: Permission denied
~/android-sdks/platform-tools/ $ ./adb devices
bash: ./adb: Permission denied

Can anyone help me with this?

share|improve this question

1 Answer 1

Make sure the android file (and others) are executable.

If you run chmod +x android, that should set the executable permission, which would allow you to run the binary.

To do this for all files in tools or platform tools, simply run:

chmod +x ~/android-sdks/tools/*
chmod +x ~/android-sdks/platform-tools/*
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.