Sub topic 7
Your Mac user account and how it relates to your Apple Account
This chapter assumes you have created or confirmed an Apple Account and have a Mac at the sign-in step of Setup Assistant. You should know what two-factor authentication is. You do not need any Terminal experience, though a few optional commands appear near the end.
Two accounts, two jobs
A new Mac setup involves two different accounts. People often treat them as one, and that causes most of the confusion later.
- The Apple Account is an identity stored on Apple's servers. It works on every Apple device you own. It controls iCloud, the App Store, Find My, Messages and Activation Lock.
- The Mac user account is stored on this Mac only. It owns a home folder, a login password, file permissions and, optionally, FileVault access. Nobody else can see it, and Apple does not manage it.
The Apple Account says who you are to Apple's services. The Mac user account says who you are to this computer. Signing in with an Apple Account does not create the Mac user account. Setup Assistant creates the user account in a separate step, and you can link the two or keep them apart.
| Property | Apple Account | Mac user account |
|---|---|---|
| Stored | Apple's servers | This Mac only |
| Used for | iCloud, App Store, Find My, Messages | Logging in, file ownership, permissions |
| Password reset by | Apple (recovery methods) | An administrator on this Mac, or your Apple Account if linked |
| Number per Mac | One signed in at a time per Mac's system services | Many |
| Appears as | Email address or phone number | Full name and short account name |
What Setup Assistant creates
After you sign in with your Apple Account, Setup Assistant asks you to create a computer account. It pre-fills two fields from your Apple Account details:
- Full name is the display name shown on the login window.
- Account name is the short name. It becomes the name of your home folder, for example
/Users/maria.
The account name matters more than it looks. You cannot easily change it later, because the home folder path is tied to it. Choose a short name with lowercase letters and no spaces, since you will see it in Terminal paths and file permissions.
The first account created during setup is an administrator. An administrator can install software, change system settings, and create or delete other users. This is the account you will use most of the time at first.
Linking or not linking the password
If you signed in with an Apple Account, the Mac may offer to use your Apple Account password to log in. In current macOS the behavior is that the Mac asks you to create a separate local password. This is the safer default, because the local password protects the disk and an Apple Account password can change from any device.
Keep these points in mind:
- The local password unlocks the Mac, authorizes installers and, with FileVault on, decrypts the disk at startup.
- The Apple Account password signs in to Apple services. Changing one does not change the other.
- If you forget the local password, one recovery route may be your Apple Account, but only if you enabled that option during FileVault setup. Without it, you need a recovery key or an administrator account.
Administrator and standard accounts
Not every account needs administrator power. A good habit on a shared Mac is to give each person their own account and make most of them standard users.
| Account type | Can install apps for all users | Can change system settings | Can manage other users |
|---|---|---|---|
| Administrator | Yes | Yes | Yes |
| Standard | No (needs an admin password) | Limited | No |
| Sharing only | No | No | No |
Some people create a second administrator as a safety net and then use a standard account for daily work. A standard account limits the damage if you install something unwanted, because the software cannot change system files without an administrator password.
To add a user, open System Settings, choose Users & Groups, click Add Account, and authenticate. Each added user gets a separate home folder, their own desktop and their own login password. They can sign in to their own Apple Account without affecting yours.
How the two accounts connect
The connection is looser than it first appears. The diagram shows the flow during setup.
Three links are worth knowing:
- iCloud services attach to your Mac user account. If two people share a Mac, each user signs in to iCloud separately, in their own session.
- Find My Mac and Activation Lock attach to the Mac as a device, tied to the Apple Account that enabled them. They do not follow the user account. Deleting the user account does not remove Activation Lock.
- FileVault recovery may use the Apple Account. This is the only place where a forgotten local password can lead back to Apple credentials.
Skipping the Apple Account at setup
You can choose Set Up Later at the sign-in step. The Mac still creates a local user account and works normally. You lose iCloud sync, the App Store, Messages and Find My until you sign in. You can sign in later from System Settings by clicking Sign in with your Apple Account at the top of the sidebar.
Skipping is reasonable when you need to set up the Mac for someone else, or when you are waiting for a verification device. A skipped sign-in does not weaken the Mac, but Find My and Activation Lock stay off. Until they are on, the Mac is easier to wipe and reuse if it is lost or stolen.
Common mistakes
- Using someone else's Apple Account to get started. Activation Lock ties the Mac to that account. If you later cannot sign in as that person, you cannot erase and reactivate the Mac.
- Choosing an account name with spaces or capital letters. The home folder name becomes awkward to type in Terminal, and renaming it is risky.
- Assuming the Apple Account password unlocks the disk. It does not, unless you chose that for FileVault recovery.
- Deleting an administrator account without creating another. The Mac keeps working, but no one can approve system changes until you regain admin access.
- Leaving a spare admin account with a weak password. An unused administrator account is a way in. Use a strong password, or remove it.
Checking your accounts from Terminal
You can confirm which local accounts exist and which one you are using. These commands only read information and change nothing.
whoamiThis prints your short account name. To list accounts that are standard users on the Mac, run:
dscl . list /Users UniqueID | awk '$2 >= 500'Accounts created by people start at ID 501. System accounts have lower numbers, which the filter hides. To check whether your account is an administrator, run:
dsmemberutil checkmembership -U "$(whoami)" -G adminThe output says user is a member of the group for an administrator and user is not a member of the group otherwise.
Summary of decisions at this step
- Pick a short, lowercase account name you can live with, since it is hard to change.
- Use a local password different from your Apple Account password.
- Decide whether FileVault recovery may use your Apple Account, or store a recovery key yourself.
- Keep daily work in a standard account if you can, and keep one administrator for changes.
Exercise
A coworker's Mac shows a login window with their name. They forgot their Apple Account password but still know their Mac login password. Can they still log in to the Mac, and why? What will not work until they fix the Apple Account?
Show answer
Yes, they can log in. The Mac login uses the local password, which is stored on the Mac and is separate from the Apple Account password. Services that depend on the Apple Account, such as iCloud sync, the App Store, Messages and Find My changes, will not work until they recover the Apple Account using its recovery options.
Exercise
You run dscl . list /Users UniqueID | awk '$2 >= 500' and see two names, one with ID 501 and one with ID 502. You only created one account. What should you do next?
Show answer
Find out who created the second account. Open System Settings, go to Users & Groups and review the list. If you do not recognize the user, check with anyone who has used the Mac. Then use dsmemberutil to see whether it is an administrator. If it is unwanted, delete it after backing up anything you need, and change your own password.