Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,811,035 Members 41,727 Now Online
XDA Developers Android and Mobile Development Forum

adb on linux insufficient permissions

Tip us?
 
gabesword
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: Feb 2009
Default adb on linux insufficient permissions

I am using linux and I have adb running, but any time I try to send a command to my evo I get

error: insufficient permissions for device

Anyone know what I'm doing wrong?
 
sph33r
Old
#2  
Senior Member
Thanks Meter 73
Posts: 452
Join Date: Jun 2007
Location: Detroit, MI
Start the adb server as root. So if you were on Ubuntu, you'd want to run the following command.

adb kill-server (you must do this to kill the user started server)

sudo adb start-server

Or you can basically do any adb command with sudo to start it. I typically use:

sudo adb devices

This starts the ADB server and tells me my phone is definitely hooked up.

Rules to live by:
1. Don't refer to a ROM as "buttery smooth".
2. Wiping once is fine (applies to phone only!).
3. There's no reason to tell us every phone you've had.
4. Stop asking if MIUI will have 4G (wimax).
5. Read, search, read more. This is the path to learning.



Dropbox is awesome on Android!
The Following 14 Users Say Thank You to sph33r For This Useful Post: [ Click to Expand ]
 
gabesword
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: Feb 2009
Thank you. I can't believe I didn't think of that.
 
timothydonohue
Old
#4  
timothydonohue's Avatar
Senior Member
Thanks Meter 103
Posts: 1,514
Join Date: Oct 2007
Location: Portland, Maine
if that's not the deal, it could be that you don't have a rules file set up for it in etc/udev/rules

search the forums for 'adb ubuntu' in the post titles, you find at least a few threads about the rules file you need to make. or, just take the file i made, remove .zip from the end of it, and put it into etc/udev/rules
it has a rule for this device and the nexus i used to have. you'll need to restart udev to get it to recognize. i think the command is just restart udev, lol, but i'm not sure. don't remember exactly. google it. or,
restart your pc
Attached Files
File Type: zip 51-android.rules.zip - [Click for QR Code] (166 Bytes, 1859 views)
If you need help, try IRC #Cyanogenmod in freenode.net
Someone may be able to help you there. I will try, if I'm on.
The Following User Says Thank You to timothydonohue For This Useful Post: [ Click to Expand ]
 
daud44
Old
#5  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Jun 2010
Location: Austin
so what does it return if your rsa key are hosed?

this is what i got

# grep RSA /dev/mtd/mtd0
RSA-REQUEST
RSA-REPLY
RSA-REJECT
RSA-ACK
RSA-1024
RSA-REQUEST
RSA-REPLY
RSA-REJECT
RSA-ACK
RSA-1024
RSA
ReRSA
RSA requests
RSA replies
 
spock123
Old
#6  
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Oct 2010
Default Thanks

Quote:
Originally Posted by sph33r View Post
Start the adb server as root. So if you were on Ubuntu, you'd want to run the following command.

adb kill-server (you must do this to kill the user started server)

sudo adb start-server

Or you can basically do any adb command with sudo to start it. I typically use:

sudo adb devices

This starts the ADB server and tells me my phone is definitely hooked up.
Thank you - stupid me didn't think of that
 
ender01
Old
#7  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Jun 2007
Thumbs up YEY

Quote:
Originally Posted by timothydonohue View Post
if that's not the deal, it could be that you don't have a rules file set up for it in etc/udev/rules

search the forums for 'adb ubuntu' in the post titles, you find at least a few threads about the rules file you need to make. or, just take the file i made, remove .zip from the end of it, and put it into etc/udev/rules
it has a rule for this device and the nexus i used to have. you'll need to restart udev to get it to recognize. i think the command is just restart udev, lol, but i'm not sure. don't remember exactly. google it. or,
restart your pc
- Dude your a lifesaver. I have no idea wtf udev rules is but that worked perfectly. Stop and started the adb server once rules in place and the device popped up a dialog saying "Allow Debugging" - Success!

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes