[Q] [howto] su/sudo fix - Android Software/Hacking General [Developers Only]

hello everyone,
I tried to use the su command on adb shell, and i get this
su: must be suid to work properly
soo i look around a bit and i find a suggestion to use sudo like this
sudo su
then i get
sudo: permission denied
and now i really stuck, soo if someone can help please!!!
and be gentle i am a noob

Is your phone rooted?

i suppose so.. but please specific..
and how i check to know i do?

Comeon!! I need your help!!
Sent from my Milestone using XDA App

To know wether our phone is root or not is simple. When we connect using adb shell, its started with $ or # Its mean when at terminal show $, it only user, if # its root
At /system/bin, is there a su file?
At /system/app, is there a superuser.apk?
If all like above you dont have, you only a user

Related

Solved - Change root password

I used the directions from Jesus Freke to install the Mod RC30 on my G1.
Then I read and used the instructions provided by Stericson to change my password....
Only one problem! Now it won't let me access root with su or with my password. I wanted to use something generic first and if it was successful I would change it to a good password. So, I used my user name "shaneaus"
Now I get permission denied with both su and shaneaus!
Am I totally screwed? Is there some way to reset the password back to su. That wouldn't make sense, I know, from a security sense. Just hoping.
Thanks
I'm hoping that there is an easier solution.
But, if I flash the update... Will that reset the root password?
I don't know what happened but this can be remedied. First off, it is possible that when you change the superuser command you failed to chmod it to 4755...at any rate, you can solve this by plugging your phone into your computer and starting up an adb shell, this should give you root if you have the modded rc30. Next remount /system to read and write privileges
mount -o remount,rw /dev/block/mtdblock3 /system
now type:
cd /system/bin
ls
Do you see su or your username listed?
If so type:
chmod 4755 (type su or your username here, without parantheses)
now open terminal emulator on your phone and try your superuser command again.
If you did not see su or your username in the output of ls type the following to get a setuid shell:
cat sh > (username or su whichever you want)
chmod 4755 (username or su whichever you want)
now open terminal emulator on your phone and try your superuser command again.
That should get you going.
Ha!
I'm just beginning to learn how to do this stuff. I have no idea how to "start up an adb shell" or even what an adb shell is!
So, I guess I'll start researching on line!
Ok, so I've read up on the adb shell and think I have a grip on how to use it... Except I can't figure out how to get the darn thing started. Do I have to open up the emulator? I thought I would be accessing the device - not the emulator. But, most sites talk about using the adb with the emulator. Also, I have seen where I should be able to run adb devices.exe and have it show my device to confirm it is connected. Only one problem, I can't find the adb devices.exe in the sdk kit.
Oh, and thanks again to Jesus Freke for the 64bit USB drivers. worked like a charm!
Awesome! Y'all are fantastic! I learned a lot tonight! I did the following:
Add $SDK_ROOT\tools to my path
Then had a hell of a time because everything I was reading (except for one location I finally found said to run "adb shell.exe"
I finally found a site that said to run "adb.exe shell"
And, whalla! I was in.
Your above advise was spot on, Stericson! Thank you!
Glad to hear you got it sorted.
shaneaus said:
Oh, and thanks again to Jesus Freke for the 64bit USB drivers. worked like a charm!
Click to expand...
Click to collapse
*looks around* huh? me?
I assume you're refering to this driver?
You should be thanking aziwoqpd for that, not me

Rooting the emulator

Does someone knows how to allow the root access on android emulator?
I have root while connecting via adb, but I want to debug my application's features which require the root access.
When I type "su" in the ConnectBot terminal application I got:
$ su
su: uid 10036 not allowed to su
I tried to execute from adb shell:
# chmod 4755 busybox
but the busybox did not become root neither.
Please help!
+1 Funny.. was going to ask the same question today!
stanglx said:
+1 Funny.. was going to ask the same question today!
Click to expand...
Click to collapse
Good. If you find the answer, post it here please.
So, no answer to this?
I ended up by running Android-x86 on the Oracle's VirtualBox emulator. There is a stable Donut and even Froyo available for download. The image is rooted, but does not let me remount the system partition, though.

[Q] Questions About Rooting Files

Howdy,
Can someone tell me what exactly rage.bin is/does to the phone?
I understand that busybox is essentially a list of UNIX commands made available on the Android system and that SU elevates the ability to issue commands but I cannot figure out what rage.bin actually is.
Why would I need to use it to root my phone? Why wouldn't I just ADB su and busybox to /system/xbin and CHMOD and CAT them?
Thanks,
Z

[Q] Rooting the motorola atrix 2

i tried a few ways to root my atrix 2 but i cant. I tried super one click, lazy one click (or however its called) and i cant root it i have a mac someone help! is there another way to root the atrix 2?
I heard there was an app that can do it too. Its in this forum somewhere.
I used the manual method on my Mac with no issues, did it twice actually.
What error messages are you getting?
I'll be home in about 15 mins and I can help further
Sent from my MB865 using Tapatalk
If all else fails, you could always reflash the fkz's, than try to root again, but the problem here is that you have a mac. Perhaps borrow a friends pc, or install Windows through bootcamp. (I wouldn't recommend a Virtual Machine though).
OK so if you used a root tool in the first place then I assume that-
-You have adb set up
-You have the necessary files to push (zerg, su, superuser.apk)
If you have no idea of what I'm talking about then just look around the folders of the root tools and you'll find them.
OK, here's what you have to do:
1. Open up a terminal.
2. CD (change directory) to where you have the necessary files located, ex. "cd ~/Desktop/" if they're on the desktop
3. Enter the following commands (one line at a time):
Code:
adb shell
cd /data/local
rm ./temp/*
exit
This removes temporary files created by the root exploit.
4. Now enter these commands (again, one at a time)
Code:
adb push zerg /data/local
adb push su /data/local
adb push Superuser.apk /data/local
adb shell
cd /data/local
chmod 777 zerg
./zerg
adb shell
mount -o rw,remount /dev/null /system
cat /data/local/su > /system/bin/su
cat /data/local/Superuser.apk > /system/app/Superuser.apk
chmod 4755 /system/bin/su
chmod 4755 /system/app/Superuser.apk
reboot
I hope you understand this... good luck getting complete root.
thread moved to general forum
If you find a specific android app that can do this for you and you can post it in the OP, I will gladly move it down to its original location. Until there, it doesnt belong in the app and themes forums.
What's your android version ?
Deliberate said:
I heard there was an app that can do it too. Its in this forum somewhere.
Click to expand...
Click to collapse
Unfortunately that app seems to have only been in the market and was recently removed... I tried looking for it today. Please correct me if I'm wrong!
jpumford said:
Unfortunately that app seems to have only been in the market and was recently removed... I tried looking for it today. Please correct me if I'm wrong!
Click to expand...
Click to collapse
You're correct, the app was written by an author who made it just to make money... he never even tested it. He took it down because it didn't work.
Most important question of all here: What OS are you running on your Mac?
If you're running 2.3.6 you can't root yet. You need to downgrade to 2.3.5

[Q] Problems with supersu and busybox on juawei inspira

My Huawei Inspira was rooted thanks to Framaroot.apk. yesterday it went on the fritz and I reset the phone and lost busybox and supersu with ota survival so I dl framaroot and installed again but this time it said partial success /system is write protected. permission denied I have tried su, sudo chmod, chown, chgrp, chown adb, terminal nothing will work on this build.prop nothing at all any suggestions please I am complete noob at this but, cant find a stockroom or anything on this even on huaweis site itself any help would be greatly appreciated.
se7encircles said:
My Huawei Inspira was rooted thanks to Framaroot.apk. yesterday it wentboot the fritz and I reset the phone and lost busybox and supersu with ota survival so I dl framaroot and installed again but this time it said partial success /system is write protected. permission denied I have tried su, sudo chmod, chown, chgrp, chown adb, terminal nothing will work on this build.prop nothing at all any suggestions please I am complete noob at this but, cant find a stockroom or anything on this even on huaweis site itself any help would be greatly appreciated.
Click to expand...
Click to collapse
Ok i can get to ADB shell but if i Type su it stays In limbo the phone says adb shell has been granted su but nothing i did a dumpsys and it said the boot sector has two conflicting signatures can any one leaf me in the direction on this i can use some shell command lsof, adb, applypatch, bmgr etc. but mksh has an error id permission denied rad only file system anyone have any knowledge to help please do any help would be greatly appreciated

Categories

Resources