Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
I am making the assumption that you have jailbroken it and have ssh installed. If that is the case

login and type

passwd

now you will be prompted to change it.
 
I am making the assumption that you have jailbroken it and have ssh installed. If that is the case

login and type

passwd

now you will be prompted to change it.

NO
passwd is not 100%
it will cause summerboard to crash continuously

DO NOT TYPE passwd!
 
Hmm, I'm new to iphone. I didn't change the password but I installed service.app and from there, I turn off SSH. Don't know if that is any safer, if you thats what you are looking for.
 
Hmm, I'm new to iphone. I didn't change the password but I installed service.app and from there, I turn off SSH. Don't know if that is any safer, if you thats what you are looking for.

this is what i do personally, i'm not sure of any other alternative to changing it

but if the service if off, it's even safer
 
I just user Services.app to kill SSH.
Turn it on when you need it and back off when your done.
Then your safe.
 
Well, there is a "risky" way to change the root (or the mobile) password:

perl -e 'print crypt("MYPASSWORD", "XU");'

Where MYPASSWORD is the new password you want, and XU is a random two-letter salt of your choice. Copy the encrypted output and replace the existing one in /etc/master.passwd on the phone.

For example, if you put alpine (in place of MYPASSWORD) and /s (in place of XU) you should get /smx7MYTQIi2M. Try it out to get a feel for it, then pop in your own choice of password and two character "salt".

I can't remember where I found the basis for these instructions, but I've used them and they work.
 
It is not all that difficult. Just if you mess up, it can be tragic. Go with what you feel you can handle.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.