+ Reply
Results 1 to 8 of 8
  1. #1
    What's Jailbreak?
    Join Date
    Jul 2008
    Posts
    19
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default CANT change my SSH root password

    Im having a problem with SSH in 2.0

    So i installed openSSH from cydia, works great.
    I use root/alpine

    I wanted to change my password so i downloaded mobile terminal from cydia
    I also made sure to download "system-cmds" from cydia for the passwd feature

    So i went into terminal on my phone and typed passwd
    it asked for my old then i entered my new

    Everything looked great so i tested it using cyberduck
    I used root/alpine, and I STILL GOT IN!
    Why didnt it change my password?

    I also tried doing "passwd mobile" and it seems that was the same as doing just passwd.

    I tried "passwd root", but it says permission denied.

    can anyone help?

  2. #2
    iPhoneaholic jakecigar's Avatar
    Join Date
    Aug 2007
    Location
    San Francisco, CA
    Posts
    476
    Thanks
    24
    Thanked 112 Times in 94 Posts

    mobile terminal logs you in as mobile.

    mobile does not have the right to change root's password.

    log in as root!

    good luck!
    http://jpassoc.com/x -- with free itunes under the puppy!
    If I help you out, please press THANKS!

    3g QuickPWN'ed with 2.1

  3. #3
    What's Jailbreak?
    Join Date
    Jul 2008
    Posts
    19
    Thanks
    3
    Thanked 0 Times in 0 Posts

    thanks for your reply!

    But how do i log in as root?
    Do you mean through my computer with cyberduck?

  4. #4
    iPhoneaholic jakecigar's Avatar
    Join Date
    Aug 2007
    Location
    San Francisco, CA
    Posts
    476
    Thanks
    24
    Thanked 112 Times in 94 Posts

    you can use terminal in the utilities folder on os x!

    or you can type login root in mobile terminal

    don't use cyberduck for password changing.
    http://jpassoc.com/x -- with free itunes under the puppy!
    If I help you out, please press THANKS!

    3g QuickPWN'ed with 2.1

  5. #5
    What's Jailbreak?
    Join Date
    Jul 2008
    Posts
    19
    Thanks
    3
    Thanked 0 Times in 0 Posts

    thanks finally got it!

    one last thing, do you know the command to shut ssh off and on in mobile terminal?

  6. #6
    iPhoneaholic jakecigar's Avatar
    Join Date
    Aug 2007
    Location
    San Francisco, CA
    Posts
    476
    Thanks
    24
    Thanked 112 Times in 94 Posts

    you don't have to quit ssh. when all connections are gone , it goes away!

    don't forget to press those thanks buttons!
    http://jpassoc.com/x -- with free itunes under the puppy!
    If I help you out, please press THANKS!

    3g QuickPWN'ed with 2.1

  7. The Following 3 Users Say Thank You to jakecigar For This Useful Post:

    ecwashere (08-09-2008), jankdalock (07-21-2008), okaybn (07-21-2008)

  8. #7
    What's Jailbreak? ecwashere's Avatar
    Join Date
    Apr 2008
    Posts
    11
    Thanks
    9
    Thanked 2 Times in 2 Posts

    Very helpful!

  9. #8
    What's Jailbreak?
    Join Date
    Apr 2009
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Changed root password, now cannot access phone.

    I have iphone 3G, firmware 2.2.

    So this is what I have done so far:

    - Installed openSSH to phone
    - Used WinSCP to access phone on a Windows XP machine
    - I used the "openssl passwd -crypt -salt /s alpine" command in Unix to find out the encryption of my own password, then replaced "alpine" with my own in line "root:/smx7MYTQIi2M:0:0::0:0:System Administrator:/var/root:/bin/sh" only to file "/etc/master.passwd".
    - I uploaded the new master.passwd file back to the /etc folder then disconnected WinSCP.

    When I tried to reconnect in WinSCP with my new password, access was denied.

    When I tried to use MobileTerminal to get into my phone, I get the following message:
    login: /bin/sh\r: No such file or directory

    I am not able to do anything else in MobileTerminal from this point on.


    Please help? What should I do now?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts