adb: Insufficient permissions for device

One of those annoying messages you sometimes get when you connect your phone to your PC to run adb shell under Linux or OS X.

How to fix? Easy:

adb kill-server

sudo adb star-server

Reconnect your phone and issue a:

adb devices

It should now give the correct serial number of you phone and adb shell should give you shell access again.

This article is my 8th oldest. It is 62 words long.