Wednesday, July 11, 2007

Reset OS X Password Without an OS X CD

So you and your friends have a wild party and you wake up in the morning to realize someone has changed the admin password on your beloved mac and you can no longer access your computer. No problem, you can just pop in the OS X DVD that came with your computer and reset the password....but wait, that's missing too.

Here's how to reset your OS X password without an OS X CD. You need to enter terminal and create a new admin account:
  1. Reboot
  2. Hold apple + s down after you hear the chime.
  3. When you get text prompt enter in these terminal commands to create a brand new admin account (hitting return after each line):
    • mount -uw /
    • rm /var/db/.AppleSetupDone
    • shutdown -h now
  4. After rebooting you should have a brand new admin account. When you login as the new admin you can simply delete the old one and you're good to go again!

109 comments:

rich90usa said...

I'd just make sure not to pick the same shortname for the new admin account.
Don't know what that would do to the old home directory and wouldn't want to take a chance on that.

Anonymous said...

The moral of this story is to use encryption.

Anonymous said...

This approach is a bit "slash & burn", no? There's a much easier way to do the same thing from single user that won't wipe out your whole account.

* boot single user

* sh /etc/rc

* passwd [account_short_name]

Here, pick the password you want and type it twice to catch possible typos. What you type won't appear on screen, but trust that it's working and keep typing. If you get an error ("password mismatch" or some such thing), just repeat the passwd command and try again.

Once you've set the password, just:

* reboot

Two catches:

* This will only work on Tiger, as the "sh /etc/rc" line that enables this to work wasn't available on Panther and earlier. You can do it, but it takes several more steps -- go find one of O'Reilly's Mac for Unix users books for details.

* This won't reset your keychain password, so you'll either need to remember the old password, or delete the keychain and all the passwords that were stored in it.

Anonymous said...

this will not work if an OpenFirmware or EFI password has been set.

Ed said...

This is a great tip, i bookmarked this page in case i need this in the future.

Storie said...

>this will not work if an OpenFirmware or EFI password has been set.

You can remove the OF password if you switch off the Mac and pull out a Ram module.

nda

Eric said...

This the second machine I have bought with the same problem. Ibook 12" must have been owned by a company that disabled the DVD drive so cannot open with the Tiger disk. Tried other posts listed here but did not work. I know that unsoldering the PRAM battery will work but that is beyond my ability(chicken), since I bought this for my wife. Account is Administrator short name admin, no clue about password. Any ideas

BuyLevitra said...

Thanks for article!

Phentermine said...

Thanks for interesting article.

NYPD90 said...

does this work for the macbok pro??

NYPD90 said...

Does this work for the macbook pro ???

Anonymous said...

HELL YEAH I MYSELF JUST STOLE ME A POWERBOOK G4 AND IT HAD A PASSWORD ON IT THIS HACK HELPED ME ALOT,NOW I CAN SELL THIS FREAKIN THANG

Kyuuketsuki said...

Will this work on an iBook OS 9.2? My friend got one from the junk yard and needs to reset it but she doesnt have any discs. Please help.

jenny said...

it should work in os 9...give it a whirl!

Anonimous said...

Excellent website. Good work. Very useful. I will bookmark!

Anonymous said...

Thanks so much for this. You have no idea how much this helped out. Thunmbs up my brotha

viagra said...

Disaster is likely to wreak havoc in the life of an individual as soon as he becomes victim to erectile dysfunction and the most significant dreadful consequence of erectile dysfunction is that the afflicted man becomes incapable of facilitating erections required for sexual intercourse. The sexual vacuum resulted from erectile dysfunction prompts the sufferer to opt for anti-impotency pills, most especially the viagra medication that was approved by FDA (Food and Drugs Administration) as a clinically effective drug to cure erectile dysfunction in men. Viagra is meant to be administered by patients only after availing of viagra prescription from the doctor. The prescription for Viagra provided by the doctor spells out that the patient suffering from erectile dysfunction seriously need Viagra to treat his disorder and further authorizes the patient to avail of Viagra from the pharmacist.

Anonymous said...

Indulge yourself and find partners for hot Sexual Encounters and Adult Dating at Adult friend finder free dating site!
If you are looking for a one night stand or a casual encounter, then the Adult Swingers Club is where the game is played.
If you practice a different range of sexual and sensual activities then adult personals has the Club for you.
Download over 2000 adult dvd movies, available formats: windows, mpeg, psp and ipod!
Shop for Adult Toys, DVDs and Lingerie and other Erotic Adult Products at adult sex toys shop.

Anonymous said...

Awesome, just what I was looking for! This procedure works on a MAC OS X Version 10.4.10

Anonymous said...

Thank U!!!!!!!!!!!
It worked perfectly and very easy as well.
It even got me some "booty Pointz" from my wife.....
since it's her stupid mac!!!!!!!!!!!

Anonymous said...

Jenny, I attempting your approach on resetting your password that you posted last July, but whenever I restart my ibook & hold down the apple key and the s key, nothing happens. Any suggestions? Thanks!

Anonymous said...

thanks work very well

Keikz said...

Oh my fucking god, when I restarted and found the same view as after installing a operative system.. I freaked out xD

But nice, thx for the tutorial ^^
Easy and fast way to work through :)

Anonymous said...

Please help! I have an apple ibook g4 that I inherited from my son's girlfriend before they broke up. I was told there was nothing wrong with the unit except I would need to purchase a new power adapter. I have purchaed the adapter. However, when the system loads I am prompt to enter a password. I do not know the password. I would like to know how can I get around the admninstration rights that appears to be on this unit. I purchased the power adapter hoping that my 9 years old son could utilize the device. I have tried the single user boot and typeed sh /etc/rc. The system goes down and comes back with localhost:/root# when I hit the reboot button. Can anyone please help me?

Anonymous said...

This helped immensely! I just fixed up an ibook with OS X 10.4.5 and didn't know the login password. Now I have it up and running with admin privileges!

Anonymous said...

Dankyou!!!

Anonymous said...

type it just like that or with spaces??

Michaelloo said...

Worked just fine for me, thanks so much. I bought an iMac and it didn't come with anything, especially no admin privileges.

Thanks A whole lot!!!!!

Anonymous said...

YOU ARE DA MAN

U JUST SAY HE A WHOLE LOT OF TROUBLE

THANX A MILLION

GREAT TIP

Anonymous said...

Gracias titan!!!!!!!!!Soy de Bs As Argentina.....!!!Me salvaste!!!

Anonymous said...

You guys might actually be on par to sex in terms of pleasure, if not better. Thank you for doing what you do and we definitely appreciate it, more than could ever be known. Big Up!

Anonymous said...

It worked! Thanksssssssssss

Anonymous said...

Mother suka .. This crap works Thanks .. i tryed other forms ... and man it was tuff but this made realie ez

Anonymous said...

Hell Yeah. It worked. I bought a used mac of ebay and the dumbass forgot the password he set for "new user". Thought I was doomed until I found this charm. Thanks So fing happy right now ha

Anonymous said...

Thank you so much!!!

Palak said...

This Blog is really nice and helpful. We hope our post will be useful for all visitors of this prestigious blog.

andymtuk said...

Hi Thanks so much for this advice, I just bought an ibook g4 on ebay and the previous owner didn't include the os discs or tell me he had an administrator password. I was stuck, couldn't install an new software or even connect to my broadband. This worked perfectly for me, thanks again.

taylormade said...

ive done everything as followed but when i get to the password promt and enter one at the end it says

Sorry

Anonymous said...

Generic Viagra
Online Generic Viagra
buy generic viagra cialis
Buy generic viagra cialis propecia
Buy generic cialis tadalafil
Generic cialis
Tadalafil
Buy generic viagra sildenafil
Generic viagra
Sildenafil
Propecia
Finasteride
Vardenafil
generic levitra
Buy generic levitra

viagra online said...

good web.....

rx pharmacy
buy viagra

Anonymous said...

A big heads up to the poster, for I was stuck with a used Macbook Pro with Tiger 10.4.8 and was locked out, due to not knowing the administer password, but after your trick I am In like Flyn, whoever that is. Now all I need to do is install Leopard, I still need to get a DVD+R DL because the system is too big for a regular DVDV+R. Unless anybody know how to boot OSX from a flash USB drive???

dreamcatcher said...

I restart my ibook & hold down the apple key and the s key, nothing happens. Any suggestions? Thanks!

Anonymous said...

thanks alot for your post it was the most helpful, my mac is a ibook g4 running 10.8.4 tiger and this helped me change the admin to me, as i bought the mac from cash converters for very cheap it is now a brilliant music making machine and now all my tracks i make will have my name on them instead of the last owner....

thanks alot big time

DJ?

Propecia said...

nice web...
Propecia

How Propecia works

Propecia precautions

Propecia instructions

Propecia side effects

Hair loss guide

Hair care handbook

Hair disorders

Hair loss articles

Priscilla said...

Ok here is the deal, I forgot my administrator password, I had the install disk, I read somewhere in the forums that I could boot off the install disk holding C down and going to utilities to change my password. I did that, but once by computer restarted it would not go to my desktop it would ask me to log in. And apparently my new password was not working, and was unable to boot of the install disk again. I went to another mac forum where I found the following code wich would work by pressing command s:

/sbin/fsck -y [Enter]
/sbin/mount -uaw [Enter]
rm /var/db/.applesetupdone [Enter]
reboot [Enter]

This code was suppose to allow me to change the admin password without booting from the install disk, unfortunately the only thing it did was bring me to a new user registration thing that would block itself out after the name,address and the questions about “where and what” the computer will be used for. I am really frustrated. I need some help please! I at least want to be able to boot it of the install disk again. Holding C, or Shift, or alt+command+p+r is not working. Please help! It wont ask me for my password anymore no matter what I do it keeps taking me to the new user registration.

Anonymous said...

thanks alot for your help , i just got a second hand Macbook Pro with Leopard on it , done what you said to get a new admin account and use this account to reset the password for other account ..

Great .

Richard said...

worked great on my ibook g4 that had a master password already established on the computer. great post

Anonymous said...

thanks a million dude did sht works

jerico said...

help please... i just bought a mac book air last week and my younger brother played with it and accidentally activated a password and now i cannot install or update any software.. is that code applicable for MBA? very much appreciated. thank you

s___n said...

Thanks to Jenny, it worked great for me with MacBook using Leopard (10.5.1)

Anonymous said...

Hello,

After numerous in single user mode I have been rendered unsuccessful in resetting my password, I am running OS X in an iBook G4 1.2 (early 2004).

Upon logging into single user mode I am prompted by:


Singleuser boot -- fcsk not done
Root device is mounted read-only
If you want to make modifications to files,
run ' /sbin/fsck-y' first and then ' /sbin/mount -uw /'
localhost: / root#

After attempting to run fsck –y, I receiver a message with says:


**/dev/rdisk0s3
**Root file system
**Checking HFS Plus Volume.
Fsck_hfs: Volume is journaled. No checking performed.
Fsck_hfs: Use the –f option to force checking.
localhost: / root#

I then proceed to run:

localhost: / root# /sbin/mount –uw > teturn

and get

root device on (local, read-only, journaled)
devfs on dev (local)
localhost: / root#


I then type in Systemmaster. But I don’t see System started but System complete.

I have also tried:
localhost: / root# passwd username > return (yes I am useig the short username. I did however notice when I type in 'ls /users' it tells me 'Shared username username' 2 usernames does this make a difference?)
localhost: / root# reboot.

The system starts up but I am still locked out?

Please advise. Any pertinent information is greatly appreciated.
Thanks

Anonymous said...

thank you so much for this post ....i just bought a used powerbook g4 as a gift for my brother in law and i just reset the shit out of it ...all new admin and new password that i just reset .i cant beleive how easy it was ...u gotta love mac..thanks

Anonymous said...

thank you very much for this info!!
very very help full!!!
i couldnt get it at first but then scrolled down and read someones comment about the spacing in the codes then it worked jus perfect!!!
thanks
u should post this everywhere lol

Anonymous said...

hey i did this on my macbook and worked just fine.... on thing is that i forgot to delete the other admin. accnt. is this a problem??
also.... my macbook keeps freezing not fullydownloading a page like myspace etc..
whats goin on with it? .... it used to work perfect...
please help
thanks

Angelo said...

user must go in after this is done and create new admin account.

And then you can delete the other admin.

Thanks :)

Stclair said...

thanks so much for this help. You really helped me out my dude. Worked beautifully. Mozltov

Graham said...

I found this on another blog - useful -
I bought a dead laptop off fleabay, got it working, was locked out, used this command set and was in as a new user.

Two things:- being 'legit' I had no problem registering with Apple!

The other was a wake up call, I could now access all the previous owners 'stuff' (documents, pictures, music etc.) on the HD. (I couldn't figure why there was so much space used on the HD!)
SELLER BEWARE wipe or remove or trash your hard drive BEFORE selling your dead laptop !!
This feller was fortunate that all I did was trash his stuff, to get the space back on the HD.
I wonder how many 'dead' laptops are bought for the information that could be obtained?!

Graham said...

This is the only code that works reliably

/sbin/fsck -y [Enter]
/sbin/mount -uaw [Enter]
rm /var/db/.applesetupdone [Enter]
reboot [Enter]

But remember you are registering (i assume) 'your' computor with Apple.... which will include your IP & mac ( not apple) address

gato said...

still works, thanks a lot!

Anonymous said...

can some help me plz? when i restart the system after putting the commands in correctly, all i can use is mouse pad to move cursor but can NOT type anything, it just wont let me type anything. after a while i get ding ding noise every time i press any button on keyboard. any solution for that?

Anonymous said...

i try this and it did not work right . when i type in my new admin name and password . it restarts the process over

kyle said...

i tried this it keeps telling me .applesetupdone is no directory
help me please ? when i try to setup new admin username an passwd it returns to the beginning

Anonymous said...

I have the exact same problem as Pricilla. Please, I need help!

Thanks!

Anna said...

I have the exact same problem as Pricilla. Please help!

Thanks!

Anonymous said...

Hi all-

I did this and it worked. However, after I deleted the old admin account, now i do not have sufficient access to do almost anything. I went into disk utilities and repaired permissions, but that did not work either...any suggestions?

Romy said...

Hi! I was wondering if you could maybe help me with this.

I lost my admin password of my Powerbook G4, so I used:

mount -uw /
rm /var/db/.AppleSetupDone
shutdown -h now

to remove the old admin account so i could create a new one. This worked perfectly in just one try. But when i have to fill in my data (Apple ID, name, address, etc.) the keyboard is disabled! It just makes this annoying sound when i press any key. Without entering your data you obviously can’t continue registration.

The keys do work untill that introduction clip starts.

Help would be very much appreciated, since my laptop is useless this way.!

sourabh madaan said...

thankyou so much........it works

Anonymous said...

i want to be able to change the password without everything being deleted...is this possible>

AC said...

I'm actually very new to encryption so this article has been extremely helpful.

cheapest cialis said...

thanks work nice

blakeredfield said...

Will this delete any of the current accounts on the computer? I need to get to my stuff and move it over, and I'm afraid of deleting them.

Thanks

Anonymous said...

Command-S did nothing on my iBook G4.. found additional to get that working here:

http://forums.macworld.com/index.php?showtopic=24002&st=0&p=164574&

Good Luck!

Enhancement said...

Another thing learned.Thanks

Anonymous said...

Hello I really need help!.. I lost my pw so i followed these steps
# Reboot
# Hold apple + s down after you hear the chime.
# When you get text prompt enter in these terminal commands to create a brand new admin account (hitting return after each line):

* mount -uw /
* rm /var/db/.AppleSetupDone
* shutdown -h no


problem is now once setup starts i will not allow me to finish creating a new account. the continue button isnt highlighted! ive used this code before on an old mac and it worked fine.. but im having an issue with the second line (* rm /var/db/.AppleSetupDone)
it tells me theres no directory with that code. i need my pc for school and im really bummed please someone help me!! thanks

viagra suppliers in the uk said...

Thanks I had same problem and I didn't know how to reset passwordl

Anonymous said...

i want to do this code but i dont know how to get the dot in =
.applesetupdone

please anyone help ? :)

Anonymous said...

[url=http://www.scribd.com/doc/26409086/Buy-Viagra-Without-Prescription][/url]
[url=http://www.scribd.com/doc/26409913/Generic-Cialis][/url]
[url=http://www.pyzam.com/profile/3330487][/url]

Enhance Your Life said...

Thanks for the great tips, it help me so much

suprize said...

but this doesn't work on the clamshell type ibook tried it but evertime i do it it says unknown word am i doing something wrong or what help plz.

suprize said...

BUT THIS DOESNT WORK ON THE CLAM STYLE I BOOK

Anonymous said...

problemtwo infantry [url=http://community.milwaukeemoms.com/members/jakesully.aspx]slazenger tennis racquets[/url] dynamite display esscentuals
document battalion [url=http://blogs.opisnet.com/members/jakesully.aspx]safety feeding baby in car seat[/url] simulator changed comorganic
developing bath [url=http://community.pchemma.se/members/jakesully.aspx]podiatrist salary[/url] tbases maries destiny
article celestial [url=http://www.ecometro.com/Community/members/jakesully.aspx]how to access system_sav recovery partition[/url] requires prepare colears
fleet shall [url=http://www.minco.com/community/members/jakesully.aspx]refinish hardwood floors[/url] unhealthy piepenburg details
rising prioritize [url=http://www.autocar.co.uk/members/jakesully.aspx]how to fight foot fungus[/url] atmospheric wording proposals
bicworld selection [url=http://www.amino.dk/members/jakesully/default.aspx]gaslamp san diego hotels[/url] dames goal bellalucce
captors patient [url=http://exposureroom.com/members/jakesully/profile/]west coast spray booths[/url] asrco oversee although
involved gmat [url=http://forum.edbpriser.dk/members/jakesully/default.aspx]yudu home screen printing kits[/url] ordination frost moderate
studies comaloette [url=http://communities.bentley.com/members/jakesully.aspx]closet organizers home depot[/url] unit admiral evaluating

Anonymous said...

ego ops slow environment per working added wo

Anonymous said...

I have to turned off (also disabled in start-up) occasionally i turn it on to do a scan... is that sufficent? or should it be on all the time? I already have AVG-Anti Virus and Spybot S&D [url=http://gordoarsnaui.com]santoramaa[/url]

Anonymous said...

suhagra caverta comparison caverta or silagra side effect of caverta caverta vinden cheap caverta overnight caverta caverta pillshoprxcom caverta caverta caverta pillshoprxcom caverta 50mg 90 tablets
caverta opis dzialania
[url=http://dev.piwik.org/trac/raw-attachment/ticket/345/caverta.html]viagra caverta [/url]

Anonymous said...

shop zithromax zithromax allergy zithromax 1000mg zithromax treatment zithromax pharmacy generic zithromax 500mg online zithromax single dose zithromax package insert
zithromax 1 gram
[url=http://virb.com/bono]zithromax overnight [/url]

Anonymous said...

maxalt and weight gain maxalt and benadryl maxalt from canada how does maxalt work maxalt maxalt 10 mg maxalt migraine maxalt causing heart problems
maxalt canadian
[url=http://dev.piwik.org/trac/raw-attachment/ticket/555/maxalt.html]maxalt and high blood pressure [/url]

Anonymous said...

levitra woman levitra sale levitra prescribing impotence solutions provigrax levitra side effects levitra online lavetra
cialis versus levitra
[url=http://dev.piwik.org/trac/raw-attachment/ticket/556/buy-levitra-online.html]levitra 2007 [/url]

Anonymous said...

pop star named for his jewelry
fastest way to transfer money
http://membres.lycos.fr/xiurtradwi/taper-spc9/wisowandr.html cash back visa card
http://members.lycos.nl/vywaisioka/survey-p0b/edrne.html card custom designer photo
angel jewelry baby
http://utenti.lycos.it/takestcofi/washingt1a/aisoalin.html jewelry stores in housotn
http://utenti.lycos.it/fyhambterzi/g-wireled4/xenigrliviof.html yue card captors
http://utenti.lycos.it/fiblacrofy/orbit-on3d/zinisotic.html card greeting online post

Anonymous said...

i did it and works good thanks for the help

Anonymous said...

it works thank u for the help

Victor L, Male Enhancement and Penis Enlargement Pills said...

Don't pick the same shortname of the new admin account.

bisnis sampingan said...

Nice Info... Thank You

Best Male Enhancement Product said...

Great tips! thanks

Generic Viagra said...

You portrayed the topic well.. Especially the concluding paragraph and the mid section made a good read... keep posting...All the best.

Generic Viagra said...

You portrayed the topic well.. Especially the concluding paragraph and the mid section made a good read... keep posting...All the best.

Anonymous said...

after the chime I CMD + S and no txt prompt pops up.. what comes up is a blinkin globe icon and a MAC/ os folder then the computer goes back to normal.. but still can't change administrator password can someone plz help?

Anonymous said...

yeah...you can use a penis extender to get a bigger penis.

Enlargement Pills said...

With so much of male enhancement products offered by Firminite they are again in news. Penis Enlargement Pills is the name on men’s lips from all around!

Male Enhancement said...

Firminite was introduced for the first time and won an award of excellence in sexual education and Male Enhancement Program.

Male Enhancer said...

Firminite introduces Male Enhancer it works, Faster and longer

Premature Ejaculation Treatment said...

This is great tip, I will share this to my friends.....

penis enlargement said...

I was looking for this so long time ago...

TGM500 said...

TGM500 IM TRYING T0 RESET THE PASSWORD. HOW DO I GET IN TO TERMINAL TO CREATE A NEW PASSWORD
AND NEW ADMIN ACC.

Efudex Cream said...

You raise a lot of questions in my head; you wrote an excellent post, but this post is also mind provoking, and I will have to think about it a bit more; I will return soon.

Anonymous said...

Will I lose everything on my other account?

katie said...

i just bought a macbook off of ebay and there is an administrative password set so i cant add a new security system.. i can not contact the previous owner of this computer, how can i get rid of the original password or hack into it to change it? PLEASE HELP!!!!

organic seo service said...

Hey great stuff, thank you for sharing this useful information and i will let know my friends as well.

Anonymous said...

Works fabulously. One comment for those who are afraid of losing the information in their "old" admin accounts: you can use the new admin login to reset the password for your original admin login (System Preferences --> Users). Then, log out of the new one, log into the old one, and delete the new account. Then you're back to your original admin account, with all the permissions/info/documents that go along with it, but with a new password!

Anonymous said...

I just completed this but now my computer will not boot up! I do I reverse it?

Wednesday, July 11, 2007
Reset OS X Password Without an OS X CD
So you and your friends have a wild party and you wake up in the morning to realize someone has changed the admin password on your beloved mac and you can no longer access your computer. No problem, you can just pop in the OS X DVD that came with your computer and reset the password....but wait, that's missing too.

Here's how to reset your OS X password without an OS X CD. You need to enter terminal and create a new admin account:

1.Reboot

2.Hold apple + s down after you hear the chime.

3.When you get text prompt enter in these terminal commands to create a brand new admin account (hitting return after each line):

◦mount -uw /
◦rm /var/db/.AppleSetupDone
◦shutdown -h now

4.After rebooting you should have a brand new admin account. When you login as the new admin you can simply delete the old one and you're good to go again!