passwd, this command not work properly in iphone (currently 1.1.4), it will cause endless loop, you must restore the system using itune. So this is the way how to change it.
Login to your iPhone using SSH, or use the Terminal Application, type vi /etc/master.passwd, and look for this line :
root:YOUROUTPUTHERE:0:0::0:0:System Administrator:/var/root:/bin/sh
Replace the content immediately after the root: with the output from that command we used early on. Done, password changed.
Maybe do the same for the mobile User, which is also a line in the same file.
NOTE:
Someone mailed me and stated that the above method did not work for him at all. Quite the opposite, he had to reinstall his Firmware again. Annoying. According to him, the
following snipped to generate the Password Hash worked fine.
openssl passwd -crypt -salt /s myNewPasswd
Personally right now i don’t have another iPhone to try this on, but i think i should still mention his method here.
from: http://www.overridersworld.com/?p=74
=================================
Some discussion:
Before I tested your method I wanted to make sure the output with the default pw ‘alpine’ would be equal to the crypted pw in mast.passwd.
master.passwd: /smx7MYTQIi2M
Perl method:
perl -e ‘print crypt(”alpine”, “XX”).”\n”‘
XXCLVpuFl/zmI
hmm…
OpenSSL method:
openssl passwd -crypt -salt /s djsr71bb
/smx7MYTQIi2M
So the OpenSSL provided the correct output.
I have now changed the pw to my own pw and everything works fine.
So I guess the perl method would not have worked with me.
Login to your iPhone using SSH, or use the Terminal Application, type vi /etc/master.passwd, and look for this line :
root:YOUROUTPUTHERE:0:0::0:0:System Administrator:/var/root:/bin/sh
Replace the content immediately after the root: with the output from that command we used early on. Done, password changed.
Maybe do the same for the mobile User, which is also a line in the same file.
NOTE:
Someone mailed me and stated that the above method did not work for him at all. Quite the opposite, he had to reinstall his Firmware again. Annoying. According to him, the
following snipped to generate the Password Hash worked fine.
openssl passwd -crypt -salt /s myNewPasswd
Personally right now i don’t have another iPhone to try this on, but i think i should still mention his method here.
from: http://www.overridersworld.com/?p=74
=================================
Some discussion:
Before I tested your method I wanted to make sure the output with the default pw ‘alpine’ would be equal to the crypted pw in mast.passwd.
master.passwd: /smx7MYTQIi2M
Perl method:
perl -e ‘print crypt(”alpine”, “XX”).”\n”‘
XXCLVpuFl/zmI
hmm…
OpenSSL method:
openssl passwd -crypt -salt /s djsr71bb
/smx7MYTQIi2M
So the OpenSSL provided the correct output.
I have now changed the pw to my own pw and everything works fine.
So I guess the perl method would not have worked with me.
No comments:
Post a Comment