LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Mobile (http://www.linuxquestions.org/questions/linux-mobile-81/)
-   -   Changing root password on rooted android (http://www.linuxquestions.org/questions/linux-mobile-81/changing-root-password-on-rooted-android-770011/)

business_kid 11-18-2009 01:05 PM

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'

exvor 11-18-2009 08:56 PM

Have you just tried to type passwd root ?

business_kid 11-19-2009 03:45 AM

$passwd root
permission denied
In a recovery mode root console
#passwd
no such file or directory

Anywhere
cd /; find -name passwd (no results)
ls /etc

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
http://www.busybox.net/downloads/BusyBox.html
But
# busybox passwd (Which was me trying to be clever)
returned nothing :-O? Then I ran out of ideas and posted here.

business_kid 11-24-2009 03:36 AM

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:43 PM.