Results 1 to 7 of 7
Discuss canīt change the root password at the General - Hackint0sh.org; ...
  1. #1
    Respected Professional Array pendalf's Avatar

    Join Date
    Jul 2007
    Posts
    548
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    34

    Question canīt change the root password

    i tryed to change the password with that:
    http://iphone.simbunch.com/crypt.php

    it seems right, but it doesnīt work!
    anybody else tryed it?

    • -

    *̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ *̡͌l̡*



  2. #2
    Senior Professional Array

    Join Date
    Jul 2007
    Posts
    187
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    16

    Default

    Are you using windows? The only thing I can think of is

    a) you've changed the shell and haven't added it to /etc/shells or
    b) you've copied this into a file in windows, saved it, then put it on your iPhone.

    In that tutorial it says "replace the entire contents of the master.passwd file". If you copy and paste directly into the file on the iPhone using Vim, then it wont insert the control characters.

    Good luck.

  3. #3
    Respected Professional Array pendalf's Avatar

    Join Date
    Jul 2007
    Posts
    548
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    34

    Default

    Quote Originally Posted by phattie View Post
    Are you using windows? The only thing I can think of is

    a) you've changed the shell and haven't added it to /etc/shells or
    b) you've copied this into a file in windows, saved it, then put it on your iPhone.

    In that tutorial it says "replace the entire contents of the master.passwd file". If you copy and paste directly into the file on the iPhone using Vim, then it wont insert the control characters.

    Good luck.
    thatīs exactly what iīve done:
    i get my file: master.passwd
    edited it with the new pass from the page
    restart the iPhone.

    trying to connect, not authorised.
    put the original file back with dottie,
    connect all is working...

    another problem is,
    if i reset the iPhone, by holding both butons 10 sec.
    the root pass is going to change to dottie back.

    any ideas


    is rw (0600) right for the master.passwd file?
    Last edited by pendalf; 08-15-2007 at 08:49 PM.

    • -

    *̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ *̡͌l̡*

  4. #4
    Respected Professional Array pendalf's Avatar

    Join Date
    Jul 2007
    Posts
    548
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    34

    Default

    this is the file the page is creating for dottie:

    ##
    # User Database
    #
    # Note that this file is consulted when the system is running in single-user
    # mode. At other times this information is handled by lookupd. By default,
    # lookupd gets information from NetInfo, so this file will not be consulted
    # unless you have changed lookupd's configuration.
    ##
    nobody:*:-2:-2::0:0:Unprivileged User:/var/empty:/usr/bin/false
    root:XUU7aqfpey51o:0:0::0:0:System Administrator:/var/root:/bin/sh
    mobile:/smx7MYTQIi2M:501:0::0:0:Mobile User:/var/mobile:/bin/sh
    daemon:*:1:1::0:0:System Services:/var/root:XUU7aqfpey51o
    unknown:*:99:99::0:0:Unknown User:/var/empty:/usr/bin/false

    XUU7aqfpey51o=dottie

    if i type new pass, they are changing just one of the dottie:
    # User Database
    #
    # Note that this file is consulted when the system is running in single-user
    # mode. At other times this information is handled by lookupd. By default,
    # lookupd gets information from NetInfo, so this file will not be consulted
    # unless you have changed lookupd's configuration.
    ##
    nobody:*:-2:-2::0:0:Unprivileged User:/var/empty:/usr/bin/false
    root:newpass:0:0::0:0:System Administrator:/var/root:/bin/sh
    mobile:/smx7MYTQIi2M:501:0::0:0:Mobile User:/var/mobile:/bin/sh
    daemon:*:1:1::0:0:System Services:/var/root:XUU7aqfpey51o
    unknown:*:99:99::0:0:Unknown User:/var/empty:/usr/bin/false

    does somebody know, why they donīt change both?

    • -

    *̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ *̡͌l̡*

  5. #5
    Respected Professional Array pendalf's Avatar

    Join Date
    Jul 2007
    Posts
    548
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    34

    Default

    fixed


    apparently i made a mistake with the format or so,
    changed it with ssh directly on the phone,

    and is working!

    but still does someboidy know,
    isnīt it necessary to change the second dottie pass in the file?

    • -

    *̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ *̡͌l̡*


  6. #6
    Senior Professional Array cyberface's Avatar

    Join Date
    Jul 2007
    Posts
    139
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    13

    Default

    This has already been highlighted in the dev team wiki as a WTF?

    The daemon shell entry contains the encrypted root password. It should contain a shell i.e. something like /bin/sh or /bin/false etc. Try logging in as 'daemon' - that'll confuse the hell out of it.

    My gut instinct is that it's a bug, unless anyone knows to the contrary. I've successfully changed my iPhone root password without changing the daemon 'shell' entry and it still works. If there was some non-standard non-unix behaviour going on so the daemon could log in as root using root's encrypted password, then it would fail on my iPhone since the root password ain't 'dottie' any more.

    Another annoying thing is that the master.passwd puts the 'mobile' user in group 0 i.e. root whereas there's a group set up for it. Could be rev. A bugs, could be other reasons. But if you're hacking ssh onto your phone and using Wifi in an area where there be hackers, it's a good idea to change all the passwords for users who can log in....

  7. #7
    Respected Professional Array pendalf's Avatar

    Join Date
    Jul 2007
    Posts
    548
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    34

    Default

    Quote Originally Posted by cyberface View Post
    This has already been highlighted in the dev team wiki as a WTF?

    The daemon shell entry contains the encrypted root password. It should contain a shell i.e. something like /bin/sh or /bin/false etc. Try logging in as 'daemon' - that'll confuse the hell out of it.

    My gut instinct is that it's a bug, unless anyone knows to the contrary. I've successfully changed my iPhone root password without changing the daemon 'shell' entry and it still works. If there was some non-standard non-unix behaviour going on so the daemon could log in as root using root's encrypted password, then it would fail on my iPhone since the root password ain't 'dottie' any more.

    Another annoying thing is that the master.passwd puts the 'mobile' user in group 0 i.e. root whereas there's a group set up for it. Could be rev. A bugs, could be other reasons. But if you're hacking ssh onto your phone and using Wifi in an area where there be hackers, it's a good idea to change all the passwords for users who can log in....
    thats a good point,
    iīll do that!
    i just was thinking, maybe itunes
    or other service soft need to be connected as root to be able to sync.

    but iīll change them all!

    thanks
    pen

    ps.: sh was on the phone!

    • -

    *̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ *̡͌l̡*

 

 

Similar Threads

  1. Replies: 32
    Last Post: 04-28-2013, 11:46 PM
  2. Replies: 0
    Last Post: 12-31-2007, 12:51 AM
  3. How to change the root password?
    By chrome01 in forum General
    Replies: 11
    Last Post: 09-19-2007, 08:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 05:38 PM.
twitter, follow us!