如果您刚刚拥有一台 Mac(Mac)或者您已经使用了一段时间,那么您很可能使用管理员帐户。在大多数情况下,您是唯一使用Mac的人,因此您无需创建另一个用户帐户。
但是,如果您与其他用户共享您的Mac,您可能希望摆脱这些额外帐户的原因有很多。
例如,您可以删除Mac上的用户以:
无论您是想整理计算机,还是与他人共享计算机并拒绝他们进一步访问,我们都会向您展示如何在Mac上快速轻松地删除用户。
如何在 Mac 上删除用户(How to Delete a User on Mac)
如果您是第一次设置Mac,设置助手会自动创建一个管理员帐户。
此帐户具有允许其修改操作系统的权限,包括安装应用程序、添加不同类型的用户帐户以及访问其他帐户类型无法 访问的Mac的关键区域。(Mac)
其他类型的帐户包括:
- 标准帐户:当您的(Standard account)Mac运行不稳定、出现死亡风车或Safari崩溃或停止时,非常适合用于故障排除。
- 来宾帐户(Guest account):无需密码即可临时访问其他用户。用户注销后,其主文件夹中的所有信息都会从您的Mac中永久删除。
虽然您可以删除Mac上的标准用户帐户和来宾用户帐户,但如果无法访问辅助管理员帐户,则无法删除管理员帐户。
但在您删除Mac上的用户帐户之前,请务必将存储在该帐户下的所有重要文档保存到云(the cloud)或外部 USB 闪存驱动器(external USB flash drive)。
在 Mac 上删除标准用户或来宾用户(Delete a Standard or Guest User on Mac)
如果您是管理员,则可以删除Mac上的其他用户以及您不想要的用户组。
- 选择Apple 菜单(Apple menu)>系统偏好设置(System Preferences)。
- 接下来,选择用户和组(Users & Groups)。
- 选择用户(Users)和组(Groups)屏幕左下方的挂锁图标,然后输入您的(padlock)管理员(admin)密码(password)以解锁首选项窗格。
- 接下来,选择您要删除的用户或组,然后在Login Options下选择(Login Options)Remove(减号)。
注意(Note):您不能选择当前登录到您的Mac的用户。
- 选择(Select one)以下选项之一:
- 将主文件夹保存在磁盘映像中(Save the home folder in a disk image):这会将用户的信息和文档存档在 / Users/ Deleted Users/中,以便以后可以在必要时恢复用户。
- 不要更改主文件夹(Don’t change the home folder):保留用户的主文件夹不变,而不删除他们的文档和信息。
- 删除主文件夹:从(Delete the home folder)Mac中删除用户的主文件夹以及所有用户信息并释放存储空间。
注意(Note):对于仅共享用户,没有与该用户关联的主文件夹。
- 选择删除用户(Delete User)。
- (Repeat)对访客(Guest)用户帐户重复这些步骤,或者通过取消选择允许访客登录到此计算机(Allow guests to log in to this computer)复选框来禁用访客用户选项。(Guest)当您准备好与他人 共享对Mac的访问权限时,您可以随时通过再次选择该框来启用访客帐户。(Guest)
- 再次选择挂锁(padlock)图标将其锁定并关闭“用户和组”(Users & Groups)窗口。
在 Mac 上恢复已删除的用户(Restore a Deleted User on a Mac)
如果您不小心删除了Mac上的用户,您可以恢复他们。但是,这将取决于它们是如何被删除的。
例如,如果您选择将主文件夹另存为磁盘映像(Save the home folder as a disk image)或不更改主文件夹(Don’t change the home folder)选项,您可以恢复已删除的用户。否则,他们的文件和信息将在删除过程中被删除。
恢复将主文件夹保存为磁盘映像的用户(Restore a User Whose Home Folder Was Saved as a Disk Image)
如果您在删除期间将其主文件夹保存为磁盘映像,则可以恢复已删除的用户。
- 选择前往(Go)>前往文件夹(Go to Folder)。
- 输入/Users/Deleted Users。
- 选择前往(Go)。
- 打开已删除用户的主文件夹的磁盘映像 (DMG) 文件(disk image (DMG) file)。该文件以其名称开头,例如 alexia.dmg。文件夹的内容将出现在新窗口中。
- 选择文件(File)>新建 Finder 窗口(New Finder Window)。
- 双击新Finder窗口底部的“用户(Users)”文件夹将其打开。
- 按住键盘上的Option键,同时将已删除用户的DMG文件图标拖到“(DMG)用户(Users)”文件夹中。
- 输入您的密码(password)以继续。主文件夹现在复制到用户(Users)文件夹。
- 选择Apple 菜单(Apple Menu)>系统偏好设置(System Preferences)>用户和组(Users & Groups)。
- 接下来,选择挂锁(padlock)图标并输入密码以解锁首选项窗格。
- 选择用户(Users)和组(Groups)屏幕 左下方登录选项下的(Login Options)添加(Add)( + ) 图标。
- 接下来,选择新帐户(New Account),然后选择用户类型(type of user)。
- 输入用户的全名(full name)——与您恢复的主文件夹同名。
- 在密码(Password)和验证(Verify)字段中输入密码(password)并添加提示(Hint)以帮助您以后记住密码。
- 选择创建用户(Create User),然后选择使用现有文件夹(Use Existing Folder)。
从主文件夹恢复已删除的用户(Restore a Deleted User from the Home Folder)
如果您保存了已删除用户的主文件夹,您可以使用这些步骤 在您的Mac上恢复他们的个人资料。(Mac)
- 选择前往(Go)>前往文件夹(Go to Folder)。
- 输入/Users/Deleted Users并选择Go。
- 找到已删除用户的主文件夹(deleted user’s home folder)并双击已删除用户帐户的磁盘映像,例如(disk image)Alexia.dmg将其打开。
- 选择前往(Go)>前往文件夹(Go to Folder)> /Users文件夹。
- 按住Option键的同时将已删除用户的磁盘映像图标拖到“用户”文件夹。
- 输入您的管理员密码(admin password)以继续。已删除用户的主文件夹将被复制到用户(Users)文件夹中。
- 选择Apple 菜单(Apple menu)>系统偏好设置(System Preferences)>用户和组(Users & Groups)。
- 接下来,选择挂锁(padlock)图标并输入您的管理员密码以解锁首选项窗格。
- 选择登录选项下的(Login Options)添加(Add)( + ) 。
- 接下来,选择新帐户(New Account),然后选择用户类型。
- 输入(Enter)用户的全名,并在帐户(Account nam)名称字段中使用与您恢复的主文件夹相同的名称。例如,如果主文件夹名称是Alexia,请在帐户名称字段中输入该名称。
- 接下来,在密码(Password)和验证(Verify)字段中输入用户密码,然后添加提示(Hint)以帮助您稍后记住密码。
- 选择创建用户(Create User)>使用现有文件夹(Use Existing Folder)。
注意(Note):如果您在删除过程中选择了删除(Delete)主文件夹选项,您将无法使用上述步骤恢复用户帐户。这是因为它会删除用户的主文件夹、文档以及他们的所有信息。但是,您可以使用Time Backup机器来恢复帐户。
删除那些额外的 Mac 帐户 (Delete Those Extra Mac Accounts )
您可以在Mac上拥有多个用户帐户,就像在Windows和Linux操作系统上一样,它们可以将其设置和文件分开。当您准备好在Mac上删除这些用户时,只需按照上面列出的步骤操作即可。
如果您有Windows PC,请参阅我们的指南,了解如何在 Windows 10 中删除用户配置文件(how to delete a user profile in Windows 10)以及如何修复 Windows 10 中损坏的用户配置文件,(how to fix a corrupt user profile in Windows 10)以帮助您管理用户帐户。
请在下方发表评论,让我们知道本指南是否有帮助。
How to Delete a User on Mac
If yoυ just got a Mac or you’ve been using it for some time, уou most likely use the administrator account. In most cases, you’re the only оne who uses your Maс, so you won’t need to create another user accоunt.
However, if you share your Mac with other users, there are several reasons why you may want to get rid of those extra accounts.
For instance, you can delete a user on your Mac to:
Whether you want to tidy up your computer, or you’ve been sharing it with someone and want to deny them further access, we’ll show you how to delete a user on Mac quickly and easily.
How to Delete a User on Mac
If you’re setting up your Mac for the first time, the setup assistant will automatically create an administrator account.
This account comes with privileges that allow it to modify the operating system, including installing apps, adding different types of user accounts, and accessing critical areas of your Mac that other account types can’t.
Other types of accounts include:
- Standard account: Ideal for troubleshooting purposes when your Mac is acting flaky, exhibits the pinwheel of death, or when Safari is crashing or stalling.
- Guest account: Gives temporary access to other users without a password. Once users log out, all the information in their home folder is permanently removed from your Mac.
While you can delete both the standard and guest user accounts on your Mac, you can’t delete an administrator account without access to a secondary admin account.
But before you delete a user account on your Mac, be sure to save any important documents stored under that account to the cloud or an external USB flash drive.
Delete a Standard or Guest User on Mac
If you’re an admin, you can delete other users on your Mac, along with user groups that you don’t want.
- Select Apple menu > System Preferences.
- Next, select Users & Groups.
- Select the padlock icon at the bottom left of the Users & Groups screen and enter your admin password to unlock the preference pane.
- Next, select the user or group you want to delete, and then select Remove (minus sign) under Login Options.
Note: You can’t select users who are currently logged in to your Mac.
- Select one of the following options:
- Save the home folder in a disk image: This archives the user’s information and documents in /Users/Deleted Users/ so the user can be restored later if necessary.
- Don’t change the home folder: Leaves the user’s home folder as is without removing their documents and information.
- Delete the home folder: Removes the user’s home folder from the Mac along with all the user information and frees up storage space.
Note: For a sharing-only user, there’s no home folder associated with that user.
- Select Delete User.
- Repeat these steps for Guest user accounts or just disable the Guest user option by deselecting the Allow guests to log in to this computer checkbox. You can always enable the Guest account later by selecting the box again when you’re ready to share access to your Mac with others.
- Select the padlock icon again to lock it and close the Users & Groups window.
Restore a Deleted User on a Mac
If you accidentally deleted a user on your Mac, you can reinstate them. However, that will depend on how they were removed.
For instance, if you choose the Save the home folder as a disk image or Don’t change the home folder option, you can restore the deleted user. Otherwise, their documents and information are removed during deletion.
Restore a User Whose Home Folder Was Saved as a Disk Image
You can restore a deleted user if you saved their home folder as a disk image during deletion.
- Select Go > Go to Folder.
- Enter /Users/Deleted Users.
- Select Go.
- Open the disk image (DMG) file for the deleted user’s home folder. The file starts with their name, for example, alexia.dmg. The folder’s contents will appear in a new window.
- Select File > New Finder Window.
- Double-click the Users folder at the bottom of the new Finder window to open it.
- Press and hold down the Option key on your keyboard while dragging the DMG file icon for the deleted user into the Users folder.
- Enter your password to continue. The home folder is now copied to the Users folder.
- Select Apple Menu > System Preferences > Users & Groups.
- Next, select the padlock icon and enter your password to unlock the preference pane.
- Select the Add (+) icon under Login Options at the bottom left of the Users & Groups screen.
- Next, select New Account and then select the type of user.
- Enter the user’s full name – the same name as the home folder you restored.
- Enter a password in both the Password and Verify fields and add a Hint to help you remember the password later.
- Select Create User and then select Use Existing Folder.
Restore a Deleted User from the Home Folder
If you saved the deleted user’s home folder, you can restore their profile on your Mac using these steps.
- Select Go > Go to Folder.
- Enter /Users/Deleted Users and select Go.
- Find the deleted user’s home folder and double-click the disk image of the deleted user account e.g., Alexia.dmg to open it.
- Select Go > Go to Folder > /Users folder.
- Press and hold down the Option key while dragging the deleted user’s disk image icon to the Users folder.
- Enter your admin password to proceed. The deleted user’s home folder will be copied into the Users folder.
- Select Apple menu > System Preferences > Users & Groups.
- Next, select the padlock icon and enter your admin password to unlock the preference pane.
- Select Add (+) under Login Options.
- Next, select New Account and then select the user type.
- Enter the user’s full name, and use the same name in the Account name field as the home folder you restored. For instance, if the home folder name is Alexia, enter that name in the account name field.
- Next, enter a user password in the Password and Verify fields, and then add a Hint to help you remember the password later.
- Select Create User > Use Existing Folder.
Note: If you selected the Delete the home folder option during deletion, you won’t be able to restore a user account using the steps above. That’s because it removes the user’s home folder, documents, and all their information. However, you can use the Time Backup machine to restore the account.
Delete Those Extra Mac Accounts
You can have multiple user accounts on your Mac just as you would on Windows and Linux operating systems, where they can keep their settings and files separate. When you’re ready to delete those users on your Mac, just follow the steps listed above.
If you have a Windows PC, turn to our guides on how to delete a user profile in Windows 10 and how to fix a corrupt user profile in Windows 10 to help you manage user accounts.
Leave a comment below and let us know if this guide was helpful.