Renaming a Mac is often one of the first configuration tasks after setting up a new Mac or onboarding a managed device. This guide explains why you might rename a Mac, how system and device names interact across services, and how to change names safely for both local and networked workflows. You will learn exact steps for the current macOS releases, understand how each rename affects File Sharing, Screen Sharing, SSH, Mobile Device Management (MDM), iCloud, and local backups, and avoid common mistakes that lead to connectivity issues. The process is quick and low risk when you follow methodical checks.
Why rename a Mac
Clear, predictable names reduce friction in shared environments. A descriptive name helps you identify a device at a glance in Finder sidebar, sharing menus, Screen Sharing, and Remote Management tools. In teams or education settings, consistent naming conventions support inventory, troubleshooting, and access control. Names also appear in logs, MDM dashboards, and backup sets, where clarity speeds diagnosis. Renaming does not change your macOS user account or the Apple ID linked to the device; it updates primarily the Computer Name used by Bonjour and certain network services, and optionally the Hostname used by the command line.
Understand the names on a Mac
macOS uses several names that sometimes overlap in confusing ways. The Computer Name is what appears in System Settings and is used for File Sharing, Screen Sharing, and the default Finder entry. The Local Hostname is used primarily by Bonjour and mDNS; it usually derives from the Computer Name but can differ. The Hostname is the command-line identifier used by network protocols and SSH; it is set at a low level and used by administrators and automation. Apple ID and Managed Apple ID are tied to the account on the device and to Activation and MDM, not to these computer-level names. Changing the Computer Name through system settings updates the Local Hostname in most cases, and you can manage Hostname separately via command line or configuration profiles.
Names at a glance
| Name Type | Where it’s used | User-facing |
|---|---|---|
| Computer Name | Finder, Sharing preferences, user-facing prompts | Yes |
| Local Hostname | Bonjour, mDNS, network discovery | Sometimes |
| Hostname | Terminal, SSH, scripts, low-level networking | No (admin focused) |
| Apple ID / Managed Apple ID | Activation, App Store, MDM, iCloud | Yes, account level |
Before you rename
Check what the name is used for in your environment. On unmanaged, personal Macs, renaming is low risk. On shared or MDM-managed devices, verify organizational naming conventions to avoid conflicts. Note existing services that rely on the current name, and plan a consistent convention up front. If the Mac is in a domain or supervised, confirm how profiles may overwrite your chosen name. Backups and file shares should still be accessible after the change, but double-check in advance.
Pre-checklist
- Confirm current Computer Name in System Settings > General > About.
- Check Local Hostname in System Settings > General > Sharing, or via
scutil --get LocalHostName. - Verify Hostname in Terminal with
hostname. - Confirm whether the Mac is managed by an MDM or directory service.
- Document a naming convention and choose a name that is short, unique, and DNS-friendly.
Rename on the desktop
Use System Settings for the safest, most supported experience. This updates the Computer Name and generally updates the Local Hostname automatically. If you need to fix the Hostname separately, use Terminal, keeping in mind that changes here may be overwritten by configuration profiles on supervised or MDM enrolled devices.
Via System Settings
- Open System Settings (or System Preferences on older macOS).
- Go to General.
- Click the Computer Name field and enter the new name.
- Close the window; the change applies immediately for local sharing menus and Bonjour.
Via Sharing preferences
On some macOS versions, Computer Name is set in Sharing preferences. Open System Settings > General > Sharing and update the Computer Name there if the General field is not editable in General.
Via Terminal (Hostname)
To change only the command-line Hostname temporarily, open Terminal and run:
sudo scutil --set Hostname newMacHostname
To make this persist across updates, prefer configuration profiles or MDM, since manual Hostname changes can be reverted on managed devices.
Verifying the change
After renaming, confirm the Computer Name in System Settings and ensure sharing and discovery features connect using the new name. On the same Mac, open Terminal and run hostname to check the Hostname, and scutil --get LocalHostName to check the Bonjour name. If these do not reflect the intended value, a profile may be managing Hostname; review MDM or configuration profiles.
Network and services impact
Renaming affects how you and others reach the Mac on a network. Finder and Remote Login uses the name you set in General > Sharing. Screen Sharing and File Sharing advertise via Bonjour using the Local Hostname. SSH typically relies on Hostname unless you connect by IP or use an address book entry. Services that depend on the previous name may temporarily fail until clients refresh their browse lists or you reconnect using the new name.
Services to check
- File Sharing: verify share points appear in Finder sidebar.
- Screen Sharing and Remote Management: confirm the new name resolves in Login Window or Remote Management preferences.
- SSH: test using hostname or local IP to ensure resolution.
- Backups: verify Time Machine or other backup jobs include the renamed Mac.
- MDM and monitoring: confirm the device appears correctly in console or inventory.
Mobile Device Management and supervision
On MDM-enrolled or supervised Macs, configuration profiles can control Hostname and Computer Name. Renaming in System Settings may be temporary if a profile resets it. Consult your MDM documentation or administrator for the supported workflow. Some organizations require renaming through the MDM console or an automated script to maintain consistency and auditability. If a profile overwrites your change, request the update from IT or update the profile logic to allow the desired name.
Troubleshooting and tips
If services do not recognize the new name, restart the Mac to refresh Bonjour and network advertisements. Ensure no duplicate hostnames exist on the network, as this can cause intermittent discovery failures. Use dns-sd -B _afpovertcp._tcp and similar browse commands to confirm Bonjour publication. For SSH, update known hosts entries if the host key changed, though renaming alone usually does not change the key. When in doubt, check System Information > Hardware > Network to confirm the active interfaces and names.
Frequently asked questions
- Does renaming change my files or user account? No. File contents and user accounts remain unchanged.
- Will Time Machine backups still work? Yes, Time Machine associates backups by disk UUID, not computer name; backups continue normally.
- Do I need to update DNS? Only if you use DNS hostnames for SSH or services; Bonjour handles local discovery without DNS.
- Can I use spaces and special characters? macOS allows many characters, but DNS- and script-friendly names without spaces or special characters are recommended.
- What if the name reverts after an update? Check for configuration profiles or MDM; update or remove the profile if appropriate.
Summary
Renaming a Mac is straightforward for most users via System Settings, and it updates the Computer Name and Local Hostname used for discovery and sharing. Hostname can be adjusted in Terminal, but on managed devices you may need MDM coordination. Verify services after the change, and follow organizational conventions on shared or supervised devices. With proper checks, renaming is low risk and immediately improves clarity in Finder, sharing menus, and logs.