Report

Change Mac admin password without the disk [Solved/Closed]

Ask a question Pranjal sharma - Last answered on Oct 28, 2012 at 02:06 PM by moyamoy
Hello,
i lost my disk and forgot the admin password so please can you tell me how to change admin password without the disk
See more 
Helpful
+1806
plus moins
You can try this:

But, it will create a new account and your old files will still not be accessible.

Creating a new Admin on Mac Os X:
Here's how to reset your OS X password without an OS X CD.
the Working solution for me was to create a new admin
you can create new admin like this by deleting a specific file.

You need to enter terminal and create a new admin account:

1. Reboot
2. Hold apple key + s key down after you hear the chime.
(command + s keys on newer Macs)
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 your good to go again!

Apple stores wont reset it for you. Computer shops may charge you $50 to $200 trying to reinstall the Mac and failing at the end.
Was this answer helpful?  
nikranj- Oct 9, 2012 at 07:46 PM
it is not working form me.everytime I put in the first command and press enter it says command not found
salsafreak- Oct 10, 2012 at 12:16 PM
It's not working for me neither. Any other suggestions ?
david- Oct 11, 2012 at 08:05 PM
thank you!!!!
cnapca43- Oct 12, 2012 at 02:48 PM
i tried that but it didn't work!!!
moyamoy 2Posts Sunday October 28, 2012Registration date October 28, 2012 Last seen - Oct 28, 2012 at 02:06 PM
works on my macbook pro,i am running Lion, thank you
Helpful
+1344
plus moins
Helpful
+196
plus moins
command + s doesnt work on my macbook ive tried it a million times
Helpful
+183
plus moins
Make sure the you do not space in between the db/.Apple and use capital letters where they are in the code and it will work

# 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 now

# 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!
liz- Apr 17, 2010 at 01:05 AM
How do you reboot it though?
newbee on mac's- Apr 17, 2010 at 01:09 AM
Worked like a charm!!!!!!!!!!!!!!
gold_fox- Apr 19, 2010 at 02:22 AM
any time I do the second line it keeps say no such File or Directory and I'm doing it right
dt- May 2, 2010 at 02:52 AM
I followed the instructions but 1the mac comes up with a chime and never boots completely..help
dee- May 8, 2010 at 06:04 PM
it created a new account, but it's still asking for the same password. It's using the same hint!
Helpful
+126
plus moins
I need help!! I just bought a used macbook pro off of some women and there was a password on it and she said there wasn't such thing, so my boyfriend tried going into the system to try to change the root name and password, but when he did that, the computer does not let me go past the main loading screen with the circle, so now I'm trying to figure out how to change it to a default name and I don't have the disk. I'm so frustrated with it. Can someone please help me with it??
Helpful
+102
plus moins
another way is to hack system preferences by putting it on the desktop and right clicking then go to package contents and recources then go to something called NSPrefPaneGroups.xml and drag it onto the desktop, after that whenever you open system preferences it will come up with a little bar and you can go to view up in the corner and go to anything u want. after that go to set master password in security after you have completed that log out, then in the log in screen type the admin username and get the password wrong about 6 or 7 times after that it will say type masterpassword to reset password and then you change the password
LM- Jan 3, 2010 at 05:29 PM
it isnt working because I need the admin password to se t the master password
Abe- Apr 11, 2010 at 05:53 PM
it works when u do it properly.....goodjob of finding a different way to hack and disable password...props to ya bro worked for me :)
mari- Apr 19, 2010 at 04:12 AM
how do u put the system preferences on the desktop?
henry- Apr 23, 2010 at 09:51 PM
WHAT DO I DO AFTER I TYPED EVERYTHINGG?
i pressed return again but idk what elsee to do it just stays ont he screen.
im pretty sure I typed allt he spaces right and everything.
PLEASE HELPP! I REALLY NEEED THIS!!
Helpful
+94
plus moins
Whenever I do the applesetupdone part... this is what happens
Ok This is exactly what happens: I type in rm /var/db/.AppleSetupDone and then I get this back : override rw- - - - - - root/wheel for /var/db/.AppleSetupDone?

What do I say to that??

So its asking me to remove applesetupdone I assume but what do I say?
Helpful
+89
plus moins
ok so it worked great to me
i did exactly that
and it ddint say failed or anything.. it looked like it passed it went through
BUT WHEN I GO TO CHANGE MY PASSWORD, IT WONT LET ME CAUSE MY OLD PASWORD IS STIL THERE
HELP?
except when I wrote " rm /var/db/.AppleSetupDone"
it said something after that, and then a question mark (?)
i didnt know what to tupe so I kept it blank
and then proceeded
when I went ot the account setting, my password was still there
HELP?
Helpful
+63
plus moins
It very simple.....
First you need to restart your computer and from there you boot up in Single User mode. Doing this will give you access the system to get Admin rights. Very important to include all spaces " /sbin/mount -uw /" . It should say something like it removed some files. now type " rm /var/db/.AppleSetupDone" . Finally type reboot
D- May 7, 2010 at 01:59 PM
Thank so much mac i'v tried so many thing to fix this thing and couldn't this worked great thanks again
Helpful
+51
plus moins
im scared that if I do this wrong that there will be lasting changes or problems to my computer
this ONLY changes the admin right? everything else stays the same... because if I mess up my computer my parents will murder me.
Helpful
+42
plus moins
ok, this is the most simple way to do it. u start by turning it on, and when you hear the chime, hold command & S together for bout 3 seconds. wait for it to load. then if you look at the list above, youll see two things to type that starts with sbin. type the 2nd one, not the first.ONLY the Second one. then type in rm /var/db/.AppleSetupDone
then it should go bakk to root. now type in reboot. There you go!
Helpful
+41
plus moins
THIS IS WORKING ON ALL MACBOOKS ive tested it on.

macbook pro unibody, macbook pro 2006 model......... even macbook g4.

Great work
Helpful
+37
plus moins
i did the whole process now when I try to register my computer my keyboard wont work every time I press a key it gives me a chime. how can I fix this thank you.
lola- Apr 7, 2010 at 03:19 PM
WOW..this works..AWESOME!!!
anonymous- Apr 9, 2010 at 10:11 AM
THANK YOU
henry- Apr 23, 2010 at 09:46 PM
WHAT DO I DO AFTER I TYPED EVERYTHINGG?
i pressed return again but idk what elsee to do it just stays ont he screen.
im pretty sure I typed allt he spaces right and everything.
PLEASE HELPP! I REALLY NEEED THIS!
cityboy- May 5, 2010 at 03:55 PM
thankkkkkkkkkkkk youuuuuuuuuuuu sooooooooooo muchhhhhhhh
Helpful
+31
plus moins
forgot my password on my laptop-
Helpful
+29
plus moins
I am running a 667mhz powerbook g4 15" with os 10.4.11 and I don't have the mac os disks and dont remember my admin password, will this work with this setup?
Helpful
+20
plus moins
ok every time I type step 2 its crap it just says no such ile or directory what is up with this
pls email me anyone pat.pitts@us.army.mil
Helpful
+19
plus moins
This method...I Love you
Helpful
+16
plus moins
hi. Will this work on a macbook 13in??
Debsy- Sep 11, 2009 at 02:04 AM
It worked beautifully on my macbook 13 inch black, so yes.
Helpful
+16
plus moins
Thank you very much! This is a wonderful method!
Helpful
+15
plus moins
Thank you, worked beautifully when I figured out the space issue. You rock!!!!!!
1 2 3 4 Next

Member requests are more likely to be responded to.

Members can monitor the statuses of their requests from their account pages.

A CCM membership gives you access to additional options.

Not a member yet?

Sign up now. It takes less than a minute and is completely free!