Jailbroken iPhone? Change that root password safely!

When you jailbreak your iPhone these days, SSH (secure shell) for remote connections is automatically installed.  It’s really handy to be able to connect, but there’s one issue:

The root password for every single iPhone (1.1.4, anyway) is “alpine”.

This means that by default, when SSH is enabled, anyone can connect to your device and wreak havoc.  It’s wise to do something about this, so one of the first commands savvy users will type in after connecting is…

# passwd root

…to set their own password.  This is actually a bad idea, because the passwd tool doesn’t work correctly on the iPhone (it’s not a normal function of the device) and you’ll wind up stuck in an endless crash loop.

But fear not!  There is a way to change your password (and, if you happen to have gotten stuck in that loop, fix the issue).  It’s all detailed on this page at matsimitsu.nl, for which I was immensely grateful.

If your 1.1.3 or 1.1.4 iPhone is jailbroken, go do it, and be successful with it.

One thought on “Jailbroken iPhone? Change that root password safely!

  1. Dr. Mike Wendell

    Considering the first worm for the iPhone has now been released and it attacks jailbroken iPhones that haven’t had their passwords changed, thanks for the link. :)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>