Skip to content
Guest Big Announcement

Need Help! Forgot Root password of my iPhone

Featured Replies

Solved by castix

You can go to /private/etc/ manually and edit the master.passwd

 

 

To reset/change your root password (requires root access)

Open MobileTerminal. Run "passwd" and type in your new password twice. Please note that your keypresses will not be displayed on the terminal screen (for security).

7mi8TPX.png

Updated by castix

You can go to /private/etc/ manually and edit the master.passwd

 

 

or

 

Open MobileTerminal. Run "passwd" and type in your new password twice. Please note that your keypresses will not be displayed on the terminal screen (for security).

7mi8TPX.png

 

The first option would work if he knew how.

 

You can't change root password without logging in as root before though.

okThis will take hours to download cus my bad internet

It's a 4KB file. ._.

  • Author

You can go to /private/etc/ manually and edit the master.passwd

 

 

 

To reset/change your root password (requires root access)

Open MobileTerminal. Run "passwd" and type in your new password twice. Please note that your keypresses will not be displayed on the terminal screen (for security).

7mi8TPX.png

 

Says I need old password

The first option would work if he knew how.

You can't change root password without logging in as root before though.

 

It's a 4KB file. ._.

I do know how Ive done it before and it didnt work
The first option would work if he knew how.

Also I mnt Chrome

  • Solution

Select Text Viewer in the screen that pops up, then click the edit button. Find the line that looks like root:UlGASB5XWDrOc:0:0::0:0:

The part we need to edit to change your devices password is between root: and the first :0

 

Next you want to generate a new password hash. You can do this with the perl function 'crypt'. If you've no idea what that is head over to Crypt Tool online . At that website you see a large text area with $str above it, and a one-line text input with $salt above it. $salt can be any two characters. In $str will be where you type your new password, go ahead and do that, and salt. Next click run.

 

You should get a result like what you previous hash was, it should be without any special characters.

Replace the text between root: and the first :0 with your generated hash. Be careful to copy it exactly.

 

Click the Save button at the top of iFile screen, then Click the Done button.

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.