How to change the root password on your jailbroken iPhone or iPad in iOS 8


If you’ve jailbroken your iPhone or iPad then it is recommended to change the default root password to prevent someone with malicious intent from gaining access to your device.

By default, every iPhone or iPad’s root password is ‘alpine’ and if you want to keep your device more secure, it is essential that the first thing you do after jailbreaking your device is to change your root password to something unique.

If you’re a long time jailbreak user, you will remember a terminal package known as MobileTerminal which allows you to execute commands on your jailbroken iPhone or iPad. Unfortunately, the package hasn’t been updated to support iOS 8 yet.

However, there is another free alternative to MobileTerminal known as MTerminal by developer lordscotland which is a stripped-down, lightweight MobileTerminal that comes with iOS 8 support and supports gestures to make your life easier.

The gesture actions include arrow and control keys, insert/delete, Esc/Tab, fullscreen mode, paste and more.

How to change the root password:

Step 1: Install Mobile Terminal

  • Launch Cydia
  • Tap on the Search tab
  • Search for MTerminal
  • Tap on MTerminal from the search results
  • Tap on Install, followed by Confirm to install MTerminal on your device.

Change root password

  • Launch the MTerminal app from the Home screen.
  • Type su root at the prompt and tap on the return key.
  • You will be prompted to enter the password, enter alpine and tap the return key.
  • Type passwd 
  • You will be prompted to enter the new password, enter a new password and tap the return key.
  • You will be prompted to re-enter the new password, enter the new password again and tap the return key. (Note that your keypresses will not be displayed on the terminal screen for security reasons)

Change mobile user password

You should also change the password of the mobile user, which is the regular user account on your device.

  • Enter passwd mobile and tap on the return key.
  • You will be prompted to enter the new password. Enter alpine, and tap on the return key to continue.
  • You will be prompted to re-enter the new password, enter alpine again and tap the return key.

Once done, your old root and mobile user passwords should now be changed to the new password you just set.

You can also change the password via OpenSSH, but I prefer this method as you don’t need a computer.

MTerminal is a great way of executing commands on your jailbroken iOS 8 device. If you’d like to give it a try, it is available for free on Cydia’s BigBoss repo. Let us know what you think about the package in the comments section below.

Like this post? Share it!

  • MetalHeadz

    Note that this tutorial is also on the Cydia app main page.

    • Anthony

      The one of Cydia is with MobileTerminal, which is not compatible with iOS 8. This one uses MTerminal which was recently released for iOS 8.

      • MetalHeadz

        Yes but the tutorial on cydia also cover if your using openSSH, which I find its a better solution

  • filthyjason

    for what it’s worth, the Mobile Terminal on Karen’s Pineapple Repo works fine on my iphone 6 / ios 8.1.2

  • Cole

    I type in alpine and it says ‘sorry’ iphone:-mobile$. Any help?

    • Henri

      me 2

    • Cole

      If you are going to post this, then at least be able to back up your article with clarification or help when it does not work for like you say….. lies at iphonehacks.

      • Alan

        It worked for me. Dude, you’re certainly doing something wrong. It’s so simple.

      • David

        Lies? Firstly, you shouldn’t need a guide to do this. And if you do, and you can’t even follow this guide, then you don’t deserve to jailbreak your device.

    • Gautam

      Did you type passwd at the prompt? It should prompt you to enter the old password. What error message are you getting?

      • Nick

        It says incorrect password. I type “su root” enter. password “alpine” then it says incorrect password.

    • Kraken

      You forgot to ‘su root’

      Mobile is the default user for iphone, which was reflected in your prompt. Root is the administrative user you are changing the password for, and su is used to switch users.

  • DasH0212

    Done…on my 6 plus ios 8.1.2
    Thank You Very Much

  • insider

    in my iphone 6 it says device name:/alpine: command not found. plz help

    • Alihassan

      The command is ‘passwd mobile’ or ‘passwd’

  • insider

    I tried the following step and it worked

    Step 1: Type passwd

    Step 2: Type alpine

    Step 3: Type a new password

    Step 4: Type the new password again

    • Gautam

      This would only change the password of the mobile user, it is important to also change the password of the root user.