How can you gain access to your mac if you forget the password

I need help accessing my computor because I forgot my username

Look below your /Users/username/ folder, the one with the House icon. The name is your username.
Forgot Your Account Password
For Snow Leopard and earlier
     Mac OS X 10.6- If you forget your administrator password
For Lion/Mountain Lion
    Boot to the Recovery HD:
Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
     When the menubar appears select Terminal from the Utilities menu.
     Enter resetpassword at the prompt and press RETURN. Follow
     instructions in the dialog window that will appear.
     Or see Reset a Mac OS X 10.7 Lion Password and
     OS X Lion- Apple ID can be used to reset your user account password.
If you are unable to boot from an installer DVD:
(these will only work on Leopard or earlier)
  1. Boot to Safe Mode by restarting and after the chime press and hold down
      the COMMAND-S keys until a black screen with white type appears.
  2. At the prompt, type the following commands pressing return after each
      command line:
     /sbin/fsck -yf
     If you do not receive a "Filesystem OK" message then repeat this command
     until you do.  If after seven tries you still do not receive a "Filesystem OK"
     message, then the system is corrupted and needs to be reinstalled.
     mount -uw /
     cd /private/var/db/netinfo
     mv local.nidb local.old
     rm ../.AppleSetupDone
     shutdown -r now
The second-to-last command above will cause OS X to think that the operating system is newly installed, and when the new owner starts up the computer it will send him/her to the startup wizard where he/she can start a new user without reinstalling.
This last method does not actually change a password. It simply removes the user accounts and lets you create an initial admin account as if the computer were new out of the box.
Reset Admin Password Using The Terminal
You can reset the password by printing out (or writing down) and carefully following these steps.
First, find the short name of the admin user on the machine. The easiest way of doing this is by looking at what the directory is called in the Users folder.
Now, start in Single-user Mode. It should boot into a command line.
Enter these exact lines. Press RETURN after each.
mount -uw /
ifconfig lo0 up
cd /var/db/netinfo
netinfod -s local
Now you'll need that short name. Enter "passwd", a space, and the short name of the admin. For example, if the admin was rather prosaically called "imadmin", you would enter "passwd imadmin".
The computer will now prompt you to change the password for "lmadmin" (or whatever the short name was). Go ahead and enter a new password.
Now, enter:
sync
reboot
and the machine will reboot. The admin password should now be changed.

Similar Messages

  • I heard that if you file share with someone on accident, they can gain access to your mac if they know the password to your mac. Could someone who I accidentally file shared with login to my mac if I did not have an admin password at the time?

    I know it was stupid to not have a computer password at the time, but I now do. Could this be possible?

    Welcome to Apple Support Communities
    This would only happen if you choose the whole hard drive as a shared folder, and it's not. By default, OS X only sets up File Sharing in order to share files through the Public folder. You can see which folders are being shared in System Preferences > Sharing > File Sharing.
    If the whole hard drive is selected as a shared folder, remove it because they can access to all your files without any password. Apart from that, there's no risk, as they can't see any other folder than the ones you chose in System Preferences > Sharing

  • How can you find out if your mac is infected with the flash back virus

    how can you find out if your mac is infected with the flash back virus?

    F-Secure's Flashback removal tool - http://www.f-secure.com/v-descs/trojan-downloader_osx_flashback_k.shtml - supposedly also works on OSX 10.5 and earlier.
    05 Apr 2012 How to Detect and Protect Against Updated Flashback Malware - http://tidbits.com/article/12918 - detection methods for multiple browsers and general information
    Leopard and earlier users see recommendations at: https://discussions.apple.com/thread/3872491

  • How can open mobile passcode of i5 phone if we forget the passcode of mobile?, how can open mobile passcode of i5 phone if we forget the passcode of mobile?

    dear sir
    how can open mobile passcode of i5 phone if we forget the passcode of mobile?, how can open mobile passcode of i5 phone if we forget the passcode of mobile?
    thanks
    raj
    mail id [email protected]

    Do as the manual says and restore the iphone

  • How can I regain access to a MAC account? -- Macbook Pro?

    Situation:  My wife has a 13" Mac Book Pro, that we received in May 2011.
    OS: Mac OS X Snow Leopard (not sure which version it came with -- 10.6?)
    My wife's computer had two administrative accounts.  She uses one regularly, and the other is the 'primary' account for downloading updates and such.
    She was unable to figure out how to use Time Machine or any of the other backup software and the like.
    Yesterday, she updated to OS X Lion, and found that a number of the programs that she enjoys using no longer function.
    She wanted to roll-back to Snow Leopard.  After transferring the majority of the 'must-save' files, she put in the install disk again for snow leopard.  This allowed her to start fresh, however, she wants to regain access to those old accounts.  She tried, but, none of the passwords work anymore.  We know what the passwords are; but, they are not working.
    Our ATTEMPTED solution:  She found a site "http://en.kioskea.net/forum/affich-7339…  This site told her to do something in the boot terminal that allowed her to add a new administrative account.
    She tried going into that new admin account and changing the passwords to the other accounts; no joy.  She changes them, but, they are not retained when she logs off or restarts.
    How can she regain access to her old files?

    Open itunes.  Sign into your account.

  • How can I reload my copy of Mac lion aftre ereasing the hard disk.

    How can I redownload my copy of mac lion again?? I downloaded the the copy via
    OS X Lion Up to Date Program then and due to some issues in the copy I tried to reinstall mac lion through rcovery tools upon booting but I received this message " a server with the specified host couldnt be found". then I used the original dvd to boot the system and install leopard via erasing the hard disk.

    You can go to the Apple online store and purcahse a copy of Mountain Lion.  This will give you a redemption code, which you can use to download Mountain Lion from the App Store.  Unfortuantely, I'm not aware of any other way to legally purchase it.  I have never seen Apple release Muontain Lion on DVD.
    In terms of Apple Service, they just need the serial number of the machine to check the purcahse date.  It is usually correct, to within a few weeks.  A quick Google search should give you the correct number to dial.
    I hope this helps.

  • I have a 2008 macbook and i lost the start up disk and forgot the password. how can i put it back to factory mode and change the password

    i have a 2008 macbook and i lost the start up disk and forgot the password. how can i put it back to factory mode and change the password

    Check out this article http://gigaom.com/apple/reset-os-x-password-without-an-os-x-cd/

  • HT5312 My e-mail account has been frozen for security reasons.  I do not have a rescue e-mail address on file so when I try to use "forgot" it goes to the e-mail address that is frozen.  How can I gain access to my e-mail address

    My e-mail account has been frozen for security reasons.  I do not have a rescue e-mail address on file so when I try to reset my password the instructions are sent to the e-mail address that is frozen.  How can I get Apple to remove the frozen status from my e-mail account?
    <Email Edited by Host>

     Account Security Team (AST) 
    Check the AppleCare number for your country here:
    http://support.apple.com/kb/HE57
    Call them up, and let them know you would like to be transferred to the Account Security Team.

  • HELP!!! I can't get into my macbookpro I unticked something in user account and today iv gone to boot up and I'm getting grey screen asking for name and password and. My normal ones don't work? How can I gain access again?

    Yesterday I was in user account settings trying to delete an extra user account that had appeared and I unticked something and today iv gone to boot up and iv got the grey screen asking for name and password and my normal ones sent working how do I get in agin? Any help would be appreciated thanks sam

    Boot into your Recovery partition by holding down the Command and R keys on startup. Under the Utilities menu, open Terminal. When in Terminal type:
    resetpassword
    A small app will open that will allow you to reset the password for a given user (hopefully you still have an admin home directory?). Type in your new password - twice - and then reboot and use your new password.
    Clinton

  • How can I delete an iCloud account on my iPhone without the password?

    How can I delete an iCloud account on my phone without being able to enter the password?
    The account on my phone is linked to an old email adress that no longer exists and won't accept any of my passwords (although, this account did accept a pasword several days ago to restore my old phone to it's original settings but it won't accept that password anymore...)
    I can't change the password because the first security questions asks for my birthday which it won't accept.
    HELP!

    If your device is signed into your old iCloud ID and you are trying to change it to your current ID, and if the old ID is an earlier version of your current ID, go tohttps://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • How can i unlock my unlock my iphone 4 i forgot the password?

    how can i unlock my iphone 4 i forgot the password?

    If you have a passcode to the screen lock that you've forgotten, restore the device from the computer to which the device is synced. For information and instructions, see:
    http://support.apple.com/kb/ht1212
    If that will not work, you'll need to put the device into Recovery Mode and then try the Restore again:
    http://support.apple.com/kb/ht1808
    If your device is running iOS 7 and you set up Find My iPhone, you'll need to enter in your Apple ID and password to activate the device after restoring:
    http://support.apple.com/kb/HT5818
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

  • HT1212 How can I get my ipod to work if I forgot the password?

    How can I get into a ipod touch that I bought from someone who forgot the password?

    Forgotten Screen-Lock Passcode
    Connect the iOS device to your computer and try to make a backup
    iOS: How to back up
    Then restore via iTunes. The iOS device will be erased. Place the iOS device in Recovery Mode if necessary to allow the restore.
    If recovery mode does not work try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up    
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store    

  • How can I print a protected pdf file if I know the password in Acrobat Reader 9?

    Hi,
    I have just received a password protected PDF file (Password isn't for opening the file, but to change security settings like copying, editing etc. only). I have the password for the file, but have no idea as to where I should enter this password in Adobe Acrobat Reader 9?
    Someone pls give me the steps to find the password field in Adobe Acrobat reader 9 to enter this password.
    Hope I don't need Adobe Acrobat 9.0 for this and reader would suffice?
    Thanks in advance.

    You can change the protection with Adobe Acrobat and the password. Not possible with only Adobe Reader.

  • How can i gain access to my data on a Time Capsule after a fresh install of Mavericks? I can't access any backups through Time Machine... They appear purple/transparent, and I can't even select them to view their contents. PLEASE HELP!!!

    So, I've got several thousand photos, and a decent amount of videos of my daughter, along with a lot of stuff for work stored on my Time Capsule, and now I can't access any of it. I did a fresh install of Mavericks on my MacBook Pro last week sometime, and haven't been able to figure out how to get my files back. Please Help!!! My daughter is 2 and a half, and every picture/video I have of her is locked on this thing. I was planning on making some photo/video projects fo my wife for Christmas, and now I'm definitely not going to be able to pull it off. Her birthday is at the end of January, though, so if I could have it by then, that would rule!
    Basically, the bar on the right of the screen has some gray dates, which I can access (all backups after the Mavericks install), and purple dates that go all the way back to March (when I originally purchased and began using the TC) which deny me access/viewing. It's possible that I created a slightly different user name when I reset my MacBook, which I guess is most likely the cause, but I have no idea what to do now to correct it. Thanks for taking the time!

    Mavericks does really nasty stuff..
    Try manually mounting the sparsebundle and extract the files you want.
    Yet another Pondini reference. http://pondini.org/TM/15.html
    We have avoided Mavericks you see knowing that it would cause these kinds of issues..
    You never ever load a new OS without doing a disk image beforehand.. TM is not reliable enough or trustworthy to be depended on.
    If none of the above work..
    I would get a USB drive on the computer and install Mountain Lion or whatever OS you had before you unfortunately upgraded to Mavericks.. Then use TM from that decent installation but mount the sparsebundle and choose the backup from a date well before mavericks was installed.
    Once you have extracted the files.. or even done a full restore you might be able to extract the files you want.

  • Is there a way to keep my child from changing the passcode I set up on his iPhone4? If not, how can I gain access to his phone if he refuses to tell me the passcode?

    He has an iPhone 4 running iOS 7.1.2. When setting up restrictions on his phone, there is no option to disable changing the passcode. He is very deceitful and has changed the passcode on it before, which resulted in me having to do a factory restore. I want to be able to see what he's looking at and doing on it.

    I copied the iTunes file from the external drive and it's in both places.  I thought all I would need is the iTunes program (which I downloaded to new computer) and my iTunes library file.  There must be something else that's missing.  My iTunes library looks the same on the new computer as it does when I open it on the external drive.  If I click on an iTunes library song from my new computer, it will only play if I have the external drive plugged in.
    My back-up drive is a mess.  I have multiple copies of music, video, photo, and document files and I don't know how that happened. ={  Obviously, I don't know how to back up stuff properly and there are back-up files extending over a 6- to 8-year period.  I think all I did was just drag and drop the main folders from the back-up drive to the same main folders on the C: drive.  Also (and I'm kind of fuzzy on this) Windows used to automatically save music files in a folder within my document files (which makes no sense to me).  As my Jewish friends would say, "Oy Vey!" 

Maybe you are looking for

  • What is the best way of replacing words in a text file ?

    i want to read in a text file and when i come across a certain word, i want to change it to something else. Whats the best way to do this ? If i read in a line at a time, how would i only replace one word and not the rest of the line ? thanks

  • Has anyone got dynamic version support to work with the HTML converter?

    I have tried this for some time and followed all the guidelines, but it still don't work. Could someone post the HTML-code for a working applet that is converted with dynamic version support ?

  • Why does this image place weird in InDesign?

    We have a PSD file supplied to us by a customer.  When we look at it in Photoshop (CS3 or CS5, Windows XP) it looks like this: When we place it in InDesign it looks like this: It still looks like that upon export, any ideas why this might be?  I've t

  • 9i db pointing 11g listener

    Hi, I am facing some problem in my listener.Actually i am going to upgrade my db from 11.2.0.2 to 11.2.0.3,as i checked the basic pre-requiste i found that my one of 9i db instance which is running in the same serverhas running under this 11g home. I

  • Coying contact between 2 contact account on iPhone

    HI I have two contacts lists on my iPhone (2 different contact accounts) I would like to know how to copy one contact from on acoount to the other one (From my exchange contact list to my ME on, or inverse) thank you for help