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
sudo
each time you need to runfastboot
, you can permanently fix the issue:lsusb
to identify your device USB VendorIDudev
to set proper permissions when your device is plugged inAs a bonus - it will be fixed for
adb
too.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
udev
to perform it's magic.Final check:
Voila!