How to Change Root Password to Secure Your iPhone - iPhoneHeat

How to Change Root Password to Secure Your iPhone

As reported earlier that a hacker successfully breaks into jailbroken iPhones with SSH installed/enabled.

What the hacker did is he scanned all those Jailbroken iPhones with SSH enabled and Default root password. Using that password he then sent a message to the hacked iPhones.

If you have jailbreak your iPhone and want to secure yourself from such infiltration, only thing you need to do is that enable SSH only when needed and make sure you change the root password used to SSH into iPhone.

Change Root Password of Your iPhone

In this iPhone guide you will learn how to change root password of your jailbroken iPhone or iTouch. Install the MobileTerminal. If you don’t have MobileTerminal installed in your iPhone then:

Open the Cydia and go to Search Tab. Search for MobileTerminal.

Tap the MobileTerminal from the search results.
Tap the Install button at the top-right

change-iphone-root-password-1change-iphone-root-password-2

Now tap the confirm button at the top-right.
Once you’re done with the installation, press the big Return to Cydia button.

change-iphone-root-password-3change-iphone-root-password-4

Now press the Home button to close the Cydia and open the MobileTerminal from your iPhone SpringBoard.

change-iphone-root-password-5change-iphone-root-password-6

type su and press return key at the bottom-right.
Now input alpine as your password and press return key.

change-iphone-root-password-7change-iphone-root-password-8

Once the password is entered correctly, you’ll be logged in as root user.
Now input passwd and press return key

change-iphone-root-password-9

You will be prompted to input a new password for root. Input your desired new password and press return.

change-iphone-root-password-10

you’ll be asked to retype your new password again and hit return key.

change-iphone-root-password-11change-iphone-root-password-12

You have changed your root password used to SSH into iPhone. Now you need to change your mobile password as well (thanks Jim for the tip)

Now type passwd mobile and hit return key.

change-iphone-mobile-password-(1)

Old Password: alpine

then you’ll be asked for new password twice. It is OK to use the same new password you used for the root account. Just don’t use ‘alpine’.

change-iphone-mobile-password-(2)

You’ve secured your iPhone by changing root password from unauthorized access.

You may also like:

Don’t forget to Follow us on Twitter or Subscribe via RSS to receive latest iPhone related Guides hacks and much more.

38 comments… add one
Robin November 10, 2009, 6:24 pm

Thank you for the info

Jim November 24, 2009, 8:27 pm

Hi again iPhoneHeat,

This is very good — but as threats become more serious, I think it is essential that people also change their password for the ‘mobile’ account. The mobile account is just as vulnerable as the root account and it holds ALL your data! It has the same password as ‘root’, and I think it will be a very short while before a criminal hacker will start to use that hole: most tutorials, including yours, now tell people to change the root password, but they forget mobile.

USERS READING THIS: After doing the steps above, with the terminal still running, you should type:

passwd mobile

and it asks for your new password (twice). It is OK to use the same new password you used for the root account. Just don’t use ‘alpine’.

iPhoneHeat November 25, 2009, 12:49 pm

Thanks for the tip Jim..
Updating..

neoTUGA December 9, 2009, 8:49 pm

Hey,

Very good guide, but that password doesn’t work on my iPhone,
is there any other??

I have already reloaded the firmware and reinstalled everything and still nothing..

Can you please help?

iPhone 3G 3.1.2
JailBroken

Thanks
nT

iPhoneHeat December 9, 2009, 10:59 pm

which password?

neoTUGA December 9, 2009, 11:34 pm

The User password, both root and mobile, it is not alpine.. :S

Thanks for the reply.

iPhoneHeat December 9, 2009, 11:42 pm

defaults are alpine..

neoTUGA December 9, 2009, 11:43 pm

So I’ve seen everywere but not on mine 🙁

LeChimp7 April 11, 2011, 9:02 pm

Try “dottie”. That used to be the password a long time ago.

reesepryde December 17, 2009, 9:30 pm

Hi,

I love the theme in the iphone pictures! Any idea which one it is? (The 5th picture)

thanks!
Reese

iPhoneHeat December 18, 2009, 12:09 am

check out the iPhone themes section:
http://www.iphoneheat.com/category/iphone-themes/

reesepryde December 17, 2009, 9:36 pm

I am trying to use your methods but once I type in su, it asks for a password and although I am trying to type, nothing shows up on the screen.
what’s wrong?

iPhoneHeat December 18, 2009, 12:10 am

Password remains invisible .. just type the correct password and hit the return button on iPhone keyboard

mandres January 5, 2010, 4:02 am

Once you have made all the changes within MobileTerminal do we have to keep that package installed or can we uninstall it?

Jim January 7, 2010, 1:24 am

When you have changed the two passwords, you can remove MobileTerminal.

rkhaleel January 21, 2010, 9:14 am

I got a new iphone 3Gs last month Dec-09 but it is not taking the default password as alpine for root or mobile. Not sure if it is changed in the new version… can someone help.
Thanks in advance.

drmrsthemonarch August 1, 2010, 9:12 am

What if MobileTerminal doesn’t work? I downloaded this application on a jailbroken iPhone 3G running iOS4 (or whatever the comparable Jailbroken OS is).

NotInterestedNow September 4, 2010, 3:02 pm

The version of Mobile Terminal available on Cydia does not work with 4.0. You need to get a different version, the link and all of the yelling from everyone involved is at http://code.google.com/p/mobileterminal/issues/detail?id=172. Just go with what Saurik says.

iPhoneHeat, fantastic tutorial! Very well done. You may have to do another regarding Mobile Terminal for 4.0, and if so, iPhone Explorer is a fantastic tool for us noobs to use (haven’t got the hang of SSH yet…).

Yuki January 15, 2011, 9:01 am

I tried your tutorial. I have good net, and all. But once I hit Terminal Open, it just immediately closes. @_@ So I removed it and installed it, still the same. What should I do? I’m on iOS 4.1

blablabla April 23, 2011, 1:05 pm

i have an iphone 5. its new but i dnt know how to change the password. plzzz help me

Hayden May 7, 2011, 5:34 pm

Have iphone 5s even come out yet? And also, thanks for the guide, it makes it really easy to understand for someone who knows little.

braveskickass44 June 21, 2011, 6:56 am

I installed MobileTerminal but when i try to run the program it opens and then closes quickly. What is wrong?

MrJAPoe June 24, 2011, 4:08 am

Thanks for the tip. However, as soon as I enter the command “su”, all input is frozen except for when I hit the “return” button. Any Help?

iApplearena June 24, 2011, 10:25 pm

what theme is that!!!! reply ASAP

stupid people August 29, 2011, 11:48 pm

if something doesn’t work then google it! My terminal didn’t work eith but a quick goole soled that issue.

I also could not change my password with the command said in this. I googled it and found that i have to type “passwd” (jail break with green poison maybe?) instead of password for both of them. Anyway my point is that I have no idea what I am doing and figured it out with no problem just from searching…..

stupid people August 29, 2011, 11:52 pm

please delete this one

stupid people August 29, 2011, 11:51 pm

if something doesn’t work then google it! My terminal didn’t work either but a quick google solved that issue.
I also couldn’t change my password with the command in this guide. I simply googled it and found that I have to type “passwd” (jail break with green poison maybe?) instead of “password” for both of them. Anyway my point is that I have no idea what I am doing and figured it out with no problem from just searching on google!!!

Zai September 27, 2011, 12:25 pm

I have installed mobile terminal but when I click it, it just goes back to the home page. So I can’t type anything. what should I do? I have reinstalled it but the same thing happens.

Kb January 28, 2012, 8:46 am

It keeps telling me after su then hit return then I type alpine it says password incorerect but it works for the passwd mobile. I am using an iPhone 4

maichik April 13, 2012, 10:25 pm

Heyy, it doesnt let me download “OpenSSH”!! It says it wasnt able to locate the file for the openssl package and that i might need to manually fix the package?? Not sure what to do..

Leave a Comment