> ## Documentation Index
> Fetch the complete documentation index at: https://docs.macstadium.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How do I reset the admin password on my Mac?

> Change the admin password on a MacStadium bare metal Mac yourself over SSH, or open a ticket for a reset from Recovery if you're locked out.

Your Mac's admin account is also the account you use for SSH, so the same password covers both. How you reset it depends on whether you can still log in.

## You know the current password

Change it yourself. Connect over SSH and run:

```bash theme={null}
passwd
```

Enter the current password, then the new password twice.

If you've turned on Screen Sharing, you can also change it in System Settings, following Apple's steps in [Change the login password on Mac](https://support.apple.com/guide/mac-help/change-the-login-password-on-mac-mchlp1550/mac). Screen Sharing is turned off on new Macs. To turn it on, see [Connect to Screen Sharing over an SSH tunnel](https://docs.macstadium.com/iaas/bare-metal-macs/connecting-to-your-mac-for-the-first-time.md#connect-to-screen-sharing-over-an-ssh-tunnel-recommended).

> [!NOTE]
>
> [My Cloud](https://docs.macstadium.com/macstadium/macstadium-overview/ip-plan.md) shows the password your Mac was provisioned with. It isn't updated when you change the password yourself, so store the new password somewhere else, such as your password manager.

## You're locked out

[Open a ticket](https://docs.macstadium.com/macstadium/support/service-desk-guide.md#open-a-ticket-for-a-specific-mac) for the Mac. In the ticket, include:

* The Mac's service ID or IP address
* Whether FileVault is turned on
* Whether you need to keep the data on the Mac

A data center technician restarts the Mac into Recovery and either resets the admin password or creates a new admin account. The Mac is offline while it's in Recovery. When the reset is done, the new password is available in My Cloud.

> [!WARNING]
>
> If FileVault is turned on, the technician needs the Mac's FileVault recovery key to reset the password. Keep your recovery key somewhere you can reach it without the Mac.

## If a correct password is rejected

If SSH rejects a password you know is correct, your connection may be blocked after too many failed login attempts, or the Mac may be compromised. Open a ticket either way. If you think the Mac was compromised, see [What should I do if my Mac was compromised?](https://docs.macstadium.com/iaas/iaas-faqs/what-should-i-do-if-my-mac-was-compromised.md).


## Related topics

- [Connecting to your Mac for the first time](https://docs.macstadium.com/iaas/bare-metal-macs/connecting-to-your-mac-for-the-first-time.md)
- [How do I disable SIP on my Mac?](https://docs.macstadium.com/iaas/iaas-faqs/how-do-i-disable-sip-on-my-mac.md)
- [What should I do if my Mac was compromised?](https://docs.macstadium.com/iaas/iaas-faqs/what-should-i-do-if-my-mac-was-compromised.md)
- [How do I find the hardware serial number for my service?](https://docs.macstadium.com/iaas/iaas-faqs/how-do-i-find-the-hardware-serial-number-for-my-service.md)
- [How do I request a reimage?](https://docs.macstadium.com/iaas/iaas-faqs/how-do-i-request-a-reimage.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.