Linux - MobileThis forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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'
$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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.