The problem is that the PATH var parameter is set for this user, and root does not have an additional PATH entry, so he cannot find the program.
You must also configure adb for root:
adb Environmental Variables
Open ~/.bashrc
and add the following to the very bottom
export PATH=${PATH}:<sdk>/tools:<sdk>/platform-tools
Change <sdk>
to the actual path. those. /home/user/android-sdk-linux
Close and reopen your terminal to update the variables.
from adb setup
If this does not work, make symbolic links from adb and other binaries to / usr / local / bin
source share