DISQUS

DISQUS Hello! Tech-Recipes is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Tech-Recipes

Cookbook of Tech Tutorials
Jump to original thread »
Author

Mac OS X recover lost root password | Apple Mac | Tech-Recipes

Started by qdideas · 9 ヶ月 ago

No excerpt available. Jump to website »

36 comments

  • Hello, I recently bought a apple g4 laptop , and do not have the password to unlock ....what can I do as I do not have the reinstall disc to boot from? Also, do i type in "sudo passwd root' or "passwd root" only? Thx very much. I enjoyed discovering this site...
  • Do you have the password to an account on the system that is an administrative account? Only those accounts can use sudo (which is quite the cool, recipe-worthy command when I or someone else has the time). Sudo is essentially a way to prevent users from having to become the root user to do root user activities. Many people tend to log into unix systems as root with all the gui weapons -- I mean tools -- at their disposal, ready to wipe out their system. It's a nasty habit, one which makes a unix system one step closer to a windows box. Speaking of boxes, I'll get off my soap one now..

    If you have an account that is privileged (can use sudo), and there can be several on a system, then you can login as that user and use the sudo passwd root command. The password it will ask you for is the current, privileged user's password. Then it will ask for the new root password twice and you should be set. If you do not have an administrative account, let me know.. there are other ways....

    Q
  • im having this problem...im stuck on a non-admin account and I lost my admin password...on top of that...my disc drive doesnt seem to work...and my os x disc will not boot from my external dvd drive....
    what can I do?
    thanks
  • This worked for me on 10.3:

    Restart the system (Apple menu -> Restart)
    Hold down Command-S while restarting -> lots of white on black text
    From the command prompt issue these commands:

    mount -uw /
    /usr/libexec/register_mach_bootstrap_servers /etc/mach_init.d
    netinfod -s local
    SystemStarter
    passwd root



    I believe that in some other versions of OSX, the second and third steps are not required because SystemStarter configures networking in those versions. In 10.3, several services will not start without active networking including opendirectory which stores the passwords.

    If you get to the command prompt and run 'passwd root' and it sits for 10-15 seconds and then returns to a command prompt, this is indicative of a timeout waiting for connection to a service that is not running. If you didn't do all of the steps above, try them in that order and see if that helps.

    Q
  • thank you for your help...going to try it now...but even if it doesnt work I appreciate it greatly!
  • the SystemStartup seems to freeze the computer while searching for something called "ARDAgent.app"
    not sure what that's all about
  • Sorry that didn't work.. what version of OS X are you running? There should be a way to prevent that service from starting. There may also be an easier way for your specific version.
  • Same problem....stuck on a non-admin account, lost admin password....disc drive not working.......OS X will not boot from external dvd drive.....we are using Panther not 10.3 - will those instructions still work? Thanks.
  • How do I check which version of mac os I have? I am really new to mac sorry, I have the same problem. For me when I sent in my powerbook for repairs, it returned with a changed admin password.
  • 1. boot computer and hold the "apple" key and the "s" key.
    2. wait for terminal show
    3. release keys
    4. type without the quotes: "/sbin/mount -uaw"
    5. press enter
    6. type without the quotes: "rm /var/db/.applesetupdone
    7. press enter
    8. type without the quotes: "reboot"
    9. press enter

    this will let you create a new admin account when you reboot your computer.
  • I'm not an apple guy, but this seems like a great recipe!!!

    If you want to post it as a new recipe, I'll run it by our apple moderators and see if we can get you a fat amazon gift certificate reward!
  • This does not "recover" anything; it would be more appropriate to say it "resets" or "changes" the password.
  • i have ibook g4 bought it off of ebay the user is no longer a registered user so i cannot contact them to get the password so i bought a new os it is 10.2.4 when i start and try to reinstall it says i need the password i tried taylors way and qms way neither would work i know i done taylors way correct i know but i dont know about qms tell me if this is correct
    hold apple button by the spacebar and s upon boot
    type mount -uw / enter
    type /usr/libexec/register_mach_bootstrap_servers /etc/mach_init.d enter
    type netinfod -s local enter
    type SystemStarter enter
    type passwd root enter

    is all this correct


    im wanting to delete everything and install this new any way possible
    i appreciate any help i can get if there is anyone willing to talk me through this i might slide a little dough there way hit me up robertseber@yahoo.com any time thanks
  • it currently has mac os x 10.4.6

    sorry i am new to a apple
  • it currently has mac os x 10.4.6

    sorry i am new to a apple
  • The command s/mount/rm/reboot sequence worked perfectly on osx 10.4.8

    OSX filenames are case sensitive, and the file on my machine was:
    /var/db/.AppleSetupDone
    :D
  • Hmm i tried the "passwd root" command and at the end it came up with NetInfo write failed: Remote system error. Any ideas on what to do?
  • <ul id="quote"><h6>taylorchase wrote:</h6>1. boot computer and hold the "apple" key and the "s" key.
    2. wait for terminal show
    3. release keys
    4. type without the quotes: "/sbin/mount -uaw"
    5. press enter
    6. type without the quotes: "rm /var/db/.applesetupdone
    7. press enter
    8. type without the quotes: "reboot"
    9. press enter

    this will let you create a new admin account when you reboot your computer.</ul>

    These are great instructions, thanks! This just worked for me!
  • this not only worked on the password problem but i never had to reload any programs thanks a million!!!!
  • Will this work with filevault active?
  • I realy need your help i am getting frustrated badly step 1 to 5 works fine but when i try to do step 6, is says the following rm/var/db/ : no such fle or directory wth am i doing wrong Please write back ASAP
  • Daughter has only one account on Mac and doesn't remember her password. I can't load any new software. Any help? I tried the sh /etc/rc then passwd username it prompted me for a new password. I typed in the new password but nothing actually typed. It asked me to repeat it (even though nothing actually appeared) I typed in what I had the first time typed in reboot and after it rebooted, I went to daughters account tried to get in, but it said we didn't have the right password. A little help would be nice. Thanks
  • OK I have a MAC OS X
    Lost password
    NO administrator account
    Only One
    Can't find software
    HELP
  • Wow thank you so very much! It worked the very first time!
  • i lost my disc.s for back up and for got pass word to get in to my mac g4
  • Bad Title!
    In no way does this recover the lost password!
    It is useful for resetting the password.
    Important difference.
  • Hi Can anybody help me? I couldnt remember my password to my ibook so i used this 1. boot computer and hold the "apple" key and the "s" key.
    2. wait for terminal show
    3. release keys
    4. type without the quotes: "/sbin/mount -uaw"
    5. press enter
    6. type without the quotes: "rm /var/db/.applesetupdone
    7. press enter
    8. type without the quotes: "reboot"
    9. press enter
    which worked great but when i got into my ibook everything that was on it had dissapered!! can anybody tell me how i can get the photos and music back that is on the system somewhere my hard drive is only showing 5 gig available and im about 9gig missing if somebody could tell me how to access these files i would me most gratefull Thanks
  • how do u no wth version of Mac Window base do u have i currenly los my passwork and my master password but tried everything wth u guys had down there Mac OS X 10.4 but do u do that if u cant get into your on Mac
  • thank you very much, your instructions worked a treat.

    i was trying to delete some files that were locked and hidden inside an app. v frustrating for a control freak like me. now very happy your simple instructions allowed me to change the root password, which i had forgotten. still wondering what it was... ???
  • Thanks a lot . i helps. I was able to change my password. I am really new to mac and linux, so dont know so many commands
  • I have a Mac Mini with OSX 10.5.6.

    I have an admin password, and used your recipe to obtain another root password. However, when I try and log in the a new terminal window with the new root password it says "unknown command"

    What have I done incorrectly?
  • If my MAC is stolen how does this prevent anyone with a leopard disk from recovering my password for my file vault account?
    ie: change root password, then change account password, then login, and steal company files?
  • Hi I can not acces command s . And forgot password and master and don.t have installation cd. Is there any diferent way ?
  • i just baught this cpu and i dont have the cd but there is a password on it that i dont know what it is every time i try to download any thing it asks for it but i havent the foggiest. if any one knows how to get rid of this or knows any thing about these cpus please help im now ofically lost. please help me
  • I can not start my G4 lost the password OS
  • well this is quite a simple one and might not work for you, but if you have any other account on your mac( admin) then you can simply
    1. go to system preferences
    2. select the user from the left sidebar
    3.click reset password.
    4. it will ask you for a new password.

Add New Comment

Returning? Login