如何删除macOS用户
当无法采用常规方式删除的时候,我们需要用命令的方式删除
Terminal
1 | sudo dscl . delete /Users/yourUserName |
出现eDS错误提示如何解决
delete status: eDSPermissionError
DS Error: -14120 (eDSPermissionError)
这是因为Secure Token的问题,解决方法如下:
1 | sudo sysadminctl -adminUser FirstCreateUserName -adminPassword PASSWORD -secureTokenOn CurrentUserName -password PASSWORD |
重置密码
无需进入恢复模式
1 | sudo passwd UserName |
如果出现如下错误:
1 | sysadminctl[1529:37416] setSecureTokenAuthorizationEnabled error Error Domain=com.apple.OpenDirectory Code=5101 "Authentication server refused operation because the current credentials are not authorized for the requested operation." UserInfo={NSLocalizedDescription=Authentication server refused operation because the current credentials are not authorized for the requested operation., NSLocalizedFailureReason=Authentication server refused operation because the current credentials are not authorized for the requested operation.} |
则表示你要删除的那个用户是普通用户,请重新把Admin权限给他,再次删除即可。
- 标题: 如何删除macOS用户
- 作者: 暗香疏影
- 创建于 : 2020-12-10 00:00:00
- 更新于 : 2020-12-10 00:00:00
- 链接: https://blog.23ikr.com/2020/12/10/2020-12-10-macOS-User-Delete/
- 版权声明: 本文章采用 CC BY-NC-SA 4.0 进行许可。
评论