Here's how to change your root password.

Discussion in 'Jailbreaks and iOS Hacks' started by TSX, Nov 2, 2009.

  1. TSX macrumors 68030

    TSX

    Joined:
    Oct 1, 2008
    Location:
    Texas
    #1
    To change the root user password, in the terminal type “su root” enter “alpine” as your password. Then type “passwd” and enter your new password twice. It's very easy to do.
     
  2. bytethese macrumors 68030

    bytethese

    Joined:
    Jun 20, 2007
    Location:
    Cranford, NJ
    #2
    When you SSH in to your iPhone, you should already be in as root. So all you have to use is the standard Unix "passwd" command. :)
     
  3. foob macrumors 6502

    foob

    Joined:
    Feb 17, 2009
    #3
    That's only if you ssh in as root. But no matter, remember whoever you ssh in as, there are two users and two passwords to change. As root, run "passwd" to change root's and "passwd mobile" to change mobile's.
     
  4. seraphkz macrumors newbie

    Joined:
    Sep 3, 2009
    #4
    is changing the password necessary for security purposes?
     
  5. Andronicus macrumors 6502a

    Joined:
    Apr 1, 2008
    #5
    Maybe a dumb question

    but what benefit does this have?
     
  6. Tokiopop macrumors 68000

    Tokiopop

    Joined:
    Dec 6, 2008
    Location:
    West Yorkshire, UK
    #6
    The benefit is that this doesn't happen.

    Props to the OP for copying MuscleNerds tweet :)
     
  7. bytethese macrumors 68030

    bytethese

    Joined:
    Jun 20, 2007
    Location:
    Cranford, NJ
    #7
    Not sure why you'd log in as a limited user, mobile doesn't have the privledges necessary for most functions you'd want to perform. :) But yes, changing mobile's PW is a good idea as well.

    Oh heck yeah. :)

    The benefit that no one knows what your password is and can't log in to your device?
     
  8. pbateman macrumors 6502

    Joined:
    Jan 9, 2009
    #8
    Is SSH something thats enabled by default when you jailbreak? or something you enable afterwards? What if you dont use SSH on your phone. I pretty much jailbroke my phone to unlock it, i dont really download jb apps other than GV Mobile.
    Should I worry about this as well?
    Thanks!!
     
  9. bytethese macrumors 68030

    bytethese

    Joined:
    Jun 20, 2007
    Location:
    Cranford, NJ
    #9
    No, you have to install the OpenSSH package. If you didn't install it, you are fine.
     
  10. medicscott macrumors 6502a

    medicscott

    Joined:
    Aug 9, 2009
    Location:
    san diego
    #10
    if you dont have it...your not cool. i know all my friends have ssh enabled on their phones.
     
  11. ViViDboarder macrumors 68040

    ViViDboarder

    Joined:
    Jun 25, 2008
    Location:
    USA
    #11
    Or you don't want it... You if you have mobile terminal, iFile and netatalk you're fine without it. Although, even with netatalk you'll want to change the default password in MobileTerminal.
     
  12. tboooe macrumors regular

    Joined:
    May 22, 2009
    #12
    I use mobileterminal and ifile as well. I do not have OPENSSH so I should be fine right?
     
  13. ViViDboarder macrumors 68040

    ViViDboarder

    Joined:
    Jun 25, 2008
    Location:
    USA
    #13
    If you have netatalk and your phone could connect to wifi then you should change this as well.

    You can do it from mobile terminal as well though.

    just run the same commands.

    Open Mobile Terminal and run the command below to change the "mobile" password.
    Code:
    passwd
    Next switch to root
    Code:
    su root
    and run the
    Code:
    passwd
    command again to change the root password. It's fine if you change them both to the same thing. Just make sure they are different from the default passwords which are
    Code:
    alpine
    .
     
  14. ViPa macrumors 6502a

    Joined:
    Dec 4, 2007
    #14
    if i installed openssh..can i uninstall it and be safe?
     
  15. ViViDboarder macrumors 68040

    ViViDboarder

    Joined:
    Jun 25, 2008
    Location:
    USA
    #15
    Read the rest of this thread. If you have netatalk you would still POSSIBLY be vulnerable.

    Really people... All you have to do is change your password as documented above and you have nothing to worry about.

    Do you leave your linksys router with the default password? Hopefully not. Unplugging it isn't the "propper" solution. Just change your passwords.
     
  16. scirica macrumors 68020

    scirica

    Joined:
    May 13, 2008
    Location:
    Dallas, TX
    #16
    Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1_2 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7D11 Safari/528.16)

    Thanks everyone. You convinced me to change the passwords. Very simple process. I changed both root and mobile to... :)
     
  17. bsbboy macrumors newbie

    Joined:
    Dec 11, 2009
    #17
    Why I just can't login to the SSH with the password "alpine" ? neither on PC or iphone.
    I've tried the terminal app and turned on the SSH and wifi.

    My iboot is 359.3.2 which means the tethered jailbreak one.

    tks
     
  18. ViViDboarder macrumors 68040

    ViViDboarder

    Joined:
    Jun 25, 2008
    Location:
    USA
    #18
    You have to have OpenSSH installed.
     
  19. bsbboy macrumors newbie

    Joined:
    Dec 11, 2009
    #19
    Yes, I've opened it by sbsetting already.
     
  20. bytethese macrumors 68030

    bytethese

    Joined:
    Jun 20, 2007
    Location:
    Cranford, NJ
    #20
    Did you just toggle the setting or did you install OpenSSH from Cydia first?
     
  21. bsbboy macrumors newbie

    Joined:
    Dec 11, 2009
    #21
    Yes,I've done all those steps.
    Install openssh and turn it on by Sbsetting, but i just can't login with any method, by terminal or Winscp or putty.
    It says password incorrect or access denied everytime.
    :(:(:(
     

Share This Page