- Shutdown the Mac. Start the computer, then press and hold down commandand Rkeys to start into recovery partition. When you see the Apple logo and the progress bar, release the keys. You have to press hard the Trackpad to register the click.
- We are not going to reset password here, but just find out the username. Start the computer,then press and hold down commandand Rkeys to start into recovery partition. When you see the Apple logo, release the keys. Wait until OS X Utilities window shows up.
Replace username by the name of the desired user account. Replace password with your new password. Type reboot and press Enter. Reset Admin Password on Mac OS X 10.4 (Tiger) The procedure is slightly different for Mac OS X 10.4 (Tiger). Restart the Mac in Single User Mode and run the following commands: Type sh /etc/rc / and press Enter. Shutdown the Mac. Start the computer, then press and hold down commandand Rkeys to start into recovery partition. When you see the Apple logo and the progress bar, release the keys. You have to press hard the Trackpad to register the click.
The name of your macOS user account and the name of your home folder must both be the same. Changing these names does not change or reset the password of your user account.
Because doing this incorrectly could damage your account and prevent you from logging in, you should back up your important data before proceeding.
First rename the home folder
- Log out of the account you're renaming, then log in to a different administrator account. (If you don't have another administrator account, you can create one in Users & Groups preferences.)
- Open the Users folder on the startup disk. It contains the home folder for each user. To get there, you can choose Go > Go to Folder from the menu bar, then enter
/Users
. - Rename the user's home folder without using any spaces in the new name. You'll be prompted to enter the administrator name and password that you used to log in. If you're using file sharing to share the home folder, you won't be able to rename it until you stop sharing the folder.
Then rename the account
While still logged out of the account you're renaming, follow these additional steps:
- Choose Apple () menu > System Preferences, then click Users & Groups.
- Click , then enter the administrator name and password that you used to log in.
- From the list of users on the left, Control-click the user you're renaming, then choose Advanced Options.
- Change the 'Account name' field to match the new name of the home folder. It should have no spaces.
- The account name also appears in the 'Home directory' field, after
/Users/
. Change that account name to match the new name of the home folder. - If you want to change the full name associated with your account, update the 'Full name' field as well. It can be any name, and you can use either the full name or the account name to log in to your Mac or make changes that require your name and password.
- Click OK, then restart your Mac.
- Log in to the renamed account, then verify that your old files and folders are visible and the account is working as expected.
The username is the filename attached to the /Users/username/ folder. See the following for changing the admin password:
Forgot Your Account Password
For Snow Leopard and earlier
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
Forgot Mac Admin Username And Password
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. Bin file mac.
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.
Another Terminal Method for Snow Leopard
Reboot the computer and hold the COMMAND and S keys down to enter single user mode. (If a lock appears and a password request, there is a firmware password. You have to know it or take it to Apple.)
When the prompt appears type the following command lines pressing RETURN after each:
fsck -fy
If you do not receive a 'Filesystem OK' message then repeat this command
Mac Forgot Username
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 /
ls /Users
passwd username
Enter the new password twice. It will not be echoed.
If this works then you will have to make modifications to your Keychain. See:
May 26, 2013 3:32 PM Mac os run windows application.