Changing root password on rooted android
I have recently rooted my android, and want to set/change the root password. I have updated to Cyanogen-4.2.4 & I can get into recovery mode and find a root console there (No passwd). I just want to set a root password so I'll have that protection (& power). I read about that worm which is rickrolling all the rooted iphones :-/.
Any ideas? The docs get me this far, but busybox doesn't have a passwd function. /sbin/busybox passwd as root returns an error.
The Superuser terminal in Cyanogen just throws up a black screen with no prompt, & sudo <command> throws 'permission denied'
Have you just tried to type passwd root ?
In a recovery mode root console
no such file or directory
cd /; find -name passwd (no results)
I don't see passwd, passwd-, shadow, shadow-
$ or # busybox
Throws up a list of commands that busybox handles, but passwd is not there, unlike standard busybox
# busybox passwd (Which was me trying to be clever)
returned nothing :-O? Then I ran out of ideas and posted here.
Kinda sorted this
On my pc, I unzipped the cyanogenmod zip. cd to the system directory in that. Then, using android sdk tools I used magic I found somewhere on google.
adb remount - says hello to the device & starts adbd on it
adb push bin/su /system/bin
adb shell chmod 4775 /system/bin/su
now I can type 'su' in the terminal, and get root after it asks. You need to touch the menu button, but that's actually handy, because you can line up and check a pile of commands and then hit menu and it runs them all.
|All times are GMT -5. The time now is 01:21 AM.|