Change the iPhone root Password

Feb 6, 2010 - 5 Comments

change iphone root password

Changing the iPhone’s root password is a good idea if you have Jailbroken your iPhone, it will prevent unauthorized users and applications from doing things you certainly don’t want them to do since the password is universal on all Jailbroken phones (unless it’s changed by the user). So with that in mind, here’s how to change the root password on your Jailbroken iPhone:

  • First you have to have the app called MobileTerminal, it’s available free at the Cydia app store
  • Launch MobileTerminal and at the prompt type the following: passwd
  • When asked for the old password, type: alpine
  • You’ll then be prompted for a new password, so type your new password, it will ask for a confirmation so type it again
  • That’s it! The root password on your Jailbroken iPhone is changed and you’ll be sent back to the command prompt.

Change the root user & mobile user password
You will want to change the password for the ‘root’ user as well as the default mobile user, doing this is easy:

  • Login to the root account by typing: login root
  • Enter this as the password: alpine
  • Now type passwd and follow the same instructions as above

Note: this is not necessary for standard iPhone users, only Jailbroken iPhones.

Enjoy this tip? Subscribe to the OSXDaily newsletter to get more of our great Apple tips, tricks, and important news delivered to your inbox! Enter your email address below:

Related articles:

Posted by: Manish Patel in iPhone, Security

5 Comments

» Comments RSS Feed

  1. Valashtar says:

    Really, this is only a pressing concern if you’ve installed OpenSSH, and leave it on all the time. If you have installed OpenSSH, you can just connect your iPhone to your wireless network and fire up Terminal on your Mac.

    Then
    ssh root@192.168.1.120
    (assuming that’s something close to your IP address)
    will get you into your iPhone, and you can then just run passwd from there.

    For those of you who don’t want to install another application that you may or may not use on your iPhone.

  2. Jasper says:

    Surely you’re logged in as mobile there, and would need to su root first, otherwise you’re changing mobile’s password.

  3. Jasper says:

    Oops! That’ll teach me to skim read – sorry.

  4. Valashtar says:

    You don’t even need “login root” or “su root” – “su” will get you to root even faster.

  5. [...] through the Edit menu, or that can be done through the command line using sudo passwd, similar to changing the root password in iOS devices. stLight.options({ publisher:'fe5e0a84-1fac-40de-8014-9f89fc1cbe6a' [...]

Leave a Reply

 

Shop for Apple & Mac Deals on Amazon.com

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates