When i try:
$ adb devices
i get the result:
List of devices attached ???????????? no permissions
what is the problem?
tried on an Ubuntu 16.04 machine and it worked perfectly.
tried an 7.1.1 device and it also worked perfectly.
Answer
Had same problem. Ensuring that device USB mode is NOT charging only has solved it.
Attribution
Source : Link , Question Author : Nadav Tasher , Answer Author : Ivan Klass