LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, LiMo, Maemo, MeeGo, Openmoko, Ubuntu Mobile, WebOS, Firefox OS, Open Mobile Alliance and other similar projects and products.
A reminder that LQ now has a dedicated Android sister site: AndroidQuestions.org

Notices

Reply
 
Search this Thread
Old 11-18-2009, 02:05 PM   #1
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,564

Rep: Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579
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'
 
Old 11-18-2009, 09:56 PM   #2
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: LFS-Version SVN-20091202, Arch 2009.08
Posts: 1,496

Rep: Reputation: 68
Have you just tried to type passwd root ?
 
Old 11-19-2009, 04:45 AM   #3
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,564

Original Poster
Rep: Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579
$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.
 
Old 11-24-2009, 04:36 AM   #4
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,564

Original Poster
Rep: Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579Reputation: 579
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Root Password Keeps Changing jameskilbane Linux - Security 4 10-14-2005 05:51 PM
changing root password Bombo Linux - Newbie 2 04-10-2005 11:42 PM
changing root password minm Linux - Newbie 9 08-31-2004 04:03 AM
Changing root password Gibby Mandriva 1 10-02-2003 11:38 PM
changing root password jamaso Linux - Newbie 1 12-25-2001 11:38 PM


All times are GMT -5. The time now is 11:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration