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
Now tap the confirm button at the top-right.
Once you’re done with the installation, press the big Return to Cydia button.
Now press the Home button to close the Cydia and open the MobileTerminal from your iPhone SpringBoard.
type su and press return key at the bottom-right.
Now input alpine as your password and press return key.
Once the password is entered correctly, you’ll be logged in as root user.
Now input passwd and press return key
You will be prompted to input a new password for root. Input your desired new password and press return.
you’ll be asked to retype your new password again and hit return key.
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.
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’.
You’ve secured your iPhone by changing root password from unauthorized access.
You may also like:
- How to Unlock iPhone 3GS, 3G OS 3.1.2 Baseband 05.11.07 Using BlackSn0w
- How to Install Cracked Apps on iPhone OS 3.1.2 *Without WIFI*
- How to Enable Tethering on iPhone OS 3.1.2
- How to Enable MMS on iPhone 2G OS 3.1.2
Don’t forget to Follow us on Twitter or Subscribe via RSS to receive latest iPhone related Guides hacks and much more.
If this page or section of the page needs to be updated, Submit Request
Tags: iPhone Guides, iPhone Protection, iPhone Tutorials, Root Login
Share/Save this Post
Comments:
Trackbacks/Pingbacks
- Dutch Hacker Breaks into Jailbroken iPhones and Asks for €5 | iPhone | iPhoneHeat
- Tweets that mention How to Change Root Password to Secure Your iPhone | iPhone | iPhoneHeat -- Topsy.com
- uberVU - social comments
- Worm Attack on Jailbroken iPhones | iPhone | iPhoneHeat
- New Malicious iPhone Malware Steals Your Data | iPhone | iPhoneHeat
- How to SSH into iPhone/iPod Touch using WinSCP (Windows) | iPhone Guides (Step-by-Step) | iPhoneHeat
- How to SSH into iPhone using WinSCP | Wiiwant2help
Leave a Reply






















Thank you for the info
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’.
Thanks for the tip Jim..
Updating..
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
which password?
The User password, both root and mobile, it is not alpine.. :S
Thanks for the reply.
defaults are alpine..
So I’ve seen everywere but not on mine
Hi,
I love the theme in the iphone pictures! Any idea which one it is? (The 5th picture)
thanks!
Reese
check out the iPhone themes section:
http://www.iphoneheat.com/category/iphone-themes/
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?
Password remains invisible .. just type the correct password and hit the return button on iPhone keyboard
Once you have made all the changes within MobileTerminal do we have to keep that package installed or can we uninstall it?
When you have changed the two passwords, you can remove MobileTerminal.
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.
What if MobileTerminal doesn’t work? I downloaded this application on a jailbroken iPhone 3G running iOS4 (or whatever the comparable Jailbroken OS is).