Update August 26th 2008: Dev Team has released the updated version 2.0.3.1 of PwnageTool which solves all the below issues. The remarks made in this post with respect to PwnageTool caused problems no longer apply.
In case you've updated your jailbroken iPhone to Apple's firmware 2.0.2 recently and used Dev Teams PwnageTool 2.0.3 which has been released on Monday August 25th 2008 you might have encountered a couple of issues. Driven by your feedback this post summarizes in a bit more detail how to resolve these issues.
Before you apply the fixes please note that the Dev Team has acknowledge the problems and announced an immediate update for PwnageTool. In case the issues do not severely affect you I recommend to just wait until they release their update and redo the jailbreak/activation/unlock.
Otherwise just apply the quick fixes outlined in this post.
Here are the symptoms you might be facing:
- When opening the mail application iPhone repeatedly prompts for the password. Providing the correct password yields a "username or password for account <account name> is incorrect" error.
- iPhone loses passwords set for protected WiFi networks.
- Exchange syncing works for Calendar, Contacts and mailbox folder structure but sending/receiving mail fails with the incorrect password issue.
- iPhone does not allow to set a Passcode Lock. After entering a new passcode twice the Passcode Lock stays OFF.
These issues seem to all be related to wrong file system permissions. One general workaround is to not include the Cydia package manager in your custom ISPW. I'm not going into any detail for this possible solution as Cydia provides much of the value of jailbreaking your device. I don't consider turning down Cydia as a good workaround.
Here is how you fix the permission issues:
- Install the OpenSSH package via Cydia. Start Cydia, go to the Search tab and search for OpenSSH. It's part of the Telesphoreo source. Install it. OpenSSH is a background daemon which will allow you to log into your device via a secure shell.
- Make sure your iPhone is connected to your local WiFi network. Find out the IP address of your device: Settings > Wi-Fi > <name of your WiFi network>. Note down your current IP address. For the remainder of this post my IP Address is 192.168.1.115.
- Next use a SSH client to log into your iPhone from a Mac/PC connected to the same local WiFi network.
- On a Mac OS X machine open a Terminal.
- Type ssh root@192.168.1.115
- If you receive a security note accept it by typing yes.
- When prompted for the password type alpine.
- Type chmod 777 /var/Keychains
- Type chmod -R 777 /private/var/Managed\ Preferences/
- Type restart
- On a Windows PC get a free SSH client like Putty.
- Start Putty. Leave all the settings with their defaults and in the Host Name field enter 192.168.1.115.
- At the login as prompt type root.
- At the password prompt type alpine.
- Type chmod 777 /var/Keychains
- Type chmod -R 777 /private/var/Managed\ Preferences/
- Type restart
Obviously for the above steps you've got to substitute my IP address with yours. You might want to consider uninstalling OpenSSH via Cydia or at least turning it off as an open SSH port with the iPhone default password constitutes a security lack. BossPrefs available via Cydia, too, is a great utility which lets you turn OpenSSH on and off easily.
This should fix the mail password, WiFi password and Passcode Lock problems.