I have a very weird issue on my Ubuntu machine when trying to run the fastboot command.
When I run:
fastboot devices
I get
no permissions fastboot
So I run the command with adminidtrator permissions:
sudo fastboot devices
And then I get the result
sudo: fastboot: command not found
How can this be? I have the directory in my PATH and everything works correctly without sudo.
Instead of forcing permissions via
sudoeach time you need to runfastboot, you can permanently fix the issue:lsusbto identify your device USB VendorIDudevto set proper permissions when your device is plugged inAs a bonus - it will be fixed for
adbtoo.For example, in my case (for 'Megafon SP-A20i') :
Let's fix:
First, we need to identify the device:
a) look for usb bus number (hack: I know the device is Intel-based one)
b) look for other Intel devices:
Hubs are not smartphones definetely, so - USB vendorID we need is "8087".
Second, configure
udev(you must replace "idVendor" value with yours) :Third, re-plug your device to allow
udevto perform it's magic.Final check:
Voila!