LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.

Notices


Reply
  Search this Thread
Old 11-18-2009, 01:05 PM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,404

Rep: Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338
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, 08:56 PM   #2
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Have you just tried to type passwd root ?
 
Old 11-19-2009, 03:45 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,404

Original Poster
Rep: Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338Reputation: 2338
$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, 03:36 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,404

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



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 04:51 PM
changing root password Bombo Linux - Newbie 2 04-10-2005 10:42 PM
changing root password minm Linux - Newbie 9 08-31-2004 03:03 AM
Changing root password Gibby Mandriva 1 10-02-2003 10:38 PM
changing root password jamaso Linux - Newbie 1 12-25-2001 10:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 07:23 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration