|
Welcome to the GSM-Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Only registered members may post questions, contact other members or search our database of over 8 million posts. Registration is fast, simple and absolutely free so please - Click to REGISTER! If you have any problems with the registration process or your account login, please contact contact us . |
|
Register | FAQ | Donate | Forum Rules | Root any Device | ★iPhone Unlock★ | ★ Direct Codes ★ | Direct Unlock Source |
iPhone 4 / iPhone 4S iPhone 4 / 4S |
| LinkBack | Thread Tools | Display Modes |
10-07-2010, 11:43 | #1 (permalink) |
Freak Poster Join Date: Aug 2010 Location: india Age: 18
Posts: 166
Member: 1378258 Status: Offline Sonork: 100.1602535 Thanks Meter: 16 | iphone edit home screen solution Howto fix the “edit home screen” loop for iPhone Yes i’m one of those idiots who changed his password using passwd and my iphone got stuck in the infinite loop of “edit home screen”. Fortunately for me i still had SSH access and i refused to restore my iPhone. What you need to do to get out of the loop is restore the original password. This can be done by editing the content of /etc/master.passwd en /etc/passwd The content of /etc/master.passwd should be: ## # User Database # # Note that this file is consulted when the system is running in single-user # mode. At other times this information is handled by lookupd. By default, # lookupd gets information from NetInfo, so this file will not be consulted # unless you have changed lookupd's configuration. ## nobody:*:-2:-2::0:0:Unprivileged User:/var/empty:/usr/bin/false root:/smx7MYTQIi2M:0:0::0:0:System Administrator:/var/root:/bin/sh mobile:/smx7MYTQIi2M:501:501::0:0:Mobile User:/var/mobile:/bin/sh daemon:*:1:1::0:0:System Services:/var/root:/usr/bin/false unknown:*:99:99::0:0:Unknown User:/var/empty:/usr/bin/false _securityd:*:64:64::0:0:securityd:/var/empty:/usr/bin/false and the content of passwd should be: # # 4.3BSD-compatable User Database # # Note that this file is not consulted for login. # It only exisits for compatability with 4.3BSD utilities. # # This file is automatically re-written by various system utilities. # Do not edit this file. Changes will be lost. # nobody:*:-2:-2:Unprivileged User:/:/usr/bin/false root:*:0:0:System Administrator:/var/root:/bin/sh mobile:*:501:501:Mobile User:/var/mobile:/bin/sh daemon:*:1:1:System Services:/var/root:/usr/bin/false unknown:*:99:99:Unknown User:/var/empty:/usr/bin/false _securityd:*:64:64::0:0:securityd:/var/empty:/usr/bin/false Either replace them with pico/vi/whatever or use winscp, yummyFTP(mac) or FUGU(mac) after that reboot your iphone (just type reboot in the commandline) and you get one last “edit home screen” message. Download a zip with the passwd files Changing the password So what if you do want to change the password. Well since the passwd binary is not working (this causes the error above) we need to do things manually. Note that i don’t now what will happen with a firmware upgrade / reset and so on. My advice is to use bossprefs to disable SSH when you don’t need it. It saves you a lot of trouble and things can’t go wrong. With the following perl script you can change the password has. You need to run this on your own unix/mac computer. perl -e 'print crypt("<PASSWORD>", "MM");' Where is your new password and MM is a random salt. It should output something like: MM7OSdLyidopY Now open /etc/master.passwd and change the hash for root to the new hash: ## # User Database # # Note that this file is consulted when the system is running in single-user # mode. At other times this information is handled by lookupd. By default, # lookupd gets information from NetInfo, so this file will not be consulted # unless you have changed lookupd's configuration. ## nobody:*:-2:-2::0:0:Unprivileged User:/var/empty:/usr/bin/false root:/smx7MYTQIi2M:0:0::0:0:System Administrator:/var/root:/bin/sh mobile:/smx7MYTQIi2M:501:501::0:0:Mobile User:/var/mobile:/bin/sh daemon:*:1:1::0:0:System Services:/var/root:/usr/bin/false unknown:*:99:99::0:0:Unknown User:/var/empty:/usr/bin/false _securityd:*:64:64::0:0:securityd:/var/empty:/usr/bin/false It should now look something like this: ## # User Database # # Note that this file is consulted when the system is running in single-user # mode. At other times this information is handled by lookupd. By default, # lookupd gets information from NetInfo, so this file will not be consulted # unless you have changed lookupd's configuration. ## nobody:*:-2:-2::0:0:Unprivileged User:/var/empty:/usr/bin/false root:MM7OSdLyidopY:0:0::0:0:System Administrator:/var/root:/bin/sh mobile:/smx7MYTQIi2M:501:501::0:0:Mobile User:/var/mobile:/bin/sh daemon:*:1:1::0:0:System Services:/var/root:/usr/bin/false unknown:*:99:99::0:0:Unknown User:/var/empty:/usr/bin/false _securityd:*:64:64::0:0:securityd:/var/empty:/usr/bin/false If you don’t have perl installed you can go to this website to generate a hash for your password: http://iphone.simbunch.com/crypt.php |
Bookmarks |
| |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HELP!!! BACKGROUND SCREEN LOGO | Michael Go | Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) | 8 | 11-23-2017 08:11 |
Anybody know solution | Robi | Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) | 1 | 12-10-2014 12:35 |
Solution for GSM phones!?!?!?!? | todosije | Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) | 6 | 12-16-2010 05:52 |
Pic Solution | jan | Nokia Hardware & Hardware Repair | 8 | 10-11-2010 10:56 |
!!!!!!TO ALL NOKIA 51XX/61XX SP LOCKS 1,2,3,4 SOLUTION latest news!!!!! | spterminator | Main Sales Section | 2 | 08-13-1999 05:55 |