Passwd
Posted by BM5k on August 14, 2007 at 08:49 PM
It is probably a great idea to change the default password on your iPhone, especially if you are using ssh or sftp (which I’ll get around to telling you how to set up) to install programs.
(Based on the info provided here)
From your local working directory, ie /Users/YOU/iPhone/, run (in Terminal, of course)scp root@XXX.XXX.XXX.XXX:/etc/master.passwd master.passwd
Where XXX.XXX.XXX.XXX is your iPhone’s IP address. This will download the password file to your working directory.
Before you do anything else, make a backup of this file. DO IT!!!!
Next, run the command perl -e 'print "\n".crypt("XXXXXX", "YZ")."\n\n"'
Where XXXXXX is your new password, and YZ are two random characters. This script will output an encrypted string. Paste this string in between the first two colons of the rows root and mobile in the master.passwd file you downloaded. Then re-upload the file using the same command used to install applications. Modified, obviously, to change the upload directory.
scp -rp master.passwd root@XXX.XXX.XXX.XXX:/etc
Reboot your iPhone. Any future SSH or SFTP connections will use the new password.

Comments
There are 0 comments on this post. Post yours →
Post a comment
Required fields in bold.