MacOS 如何删除启动时的客人用户?

MacOS 如何删除启动时的客人用户?

问题描述:如何删除启动时的客人用户?系统更新后就忽然出现了一个客人用户,我已经在“用户与群组”里关闭了客人用户,也重启了好几次,但每次启动还是会出现客人用户。。。。。。

解释

----------

一般来说在10.11中,如果你在iCloud中打开了Find my Mac的功能,那么系统会自动“强制”将Guest用户显示在登录窗口中,即便是关闭的它,这其中的逻辑是,如果一个“傻子”捡到了这个Mac,那么只有这个guest 用户是不用密码就可以登录的,在上网后,这个Mac就可以被定位到;其实,也是为了丢失Mac的人可以与好心捡到的人联系和定位,以方便取回。总之,留着它,意味着Fin d my Mac功能真正起到作用,否则这个功能成为了摆设。

在login窗口中屏蔽guest用户,使用下面的方法——

屏蔽登录----------

根据我在10.11.6上的尝试,具体步骤需要使用终端来执行一个命令,同时这个命令的结果可以被取消-也就是可以还原。这里没有做其它的错误检测,如果运行后依然没有得到想要的结果,需要进一步的测试检测。

HiddenUsersList 命令:

sudo/usr/libexec/plistbuddy -c "add :HiddenUsersList:0 string Guest" /Library/Preferences/com.apple.loginwindow.plist

恢复命令:

sudo /usr/libexec/plistbuddy -c "delete :HiddenUsersList:0" /Library/Preferences/com.apple.loginwindow.plist

另:The trick still works in Catalina:

Log out as admin (below "admin" is meant as name of the admin user account - adapt accordingly) and login as foo.

If you want to remove the login screen's "Others..." option, which appears after disabling the admin account, Open the Terminal and enter:

sudo defaults write /Library/Preferences/com.apple.loginwindow SHOWOTHERUSERS_MANAGED -bool FALSE

To reverse the hidden admin user and enable "Others..." again enter:

sudo defaults delete /Library/Preferences/com.apple.loginwindow SHOWOTHERUSERS_MANAGED

Tested in a Catalina VM. This might not work for T2-equipped Macs and definitely not if FileVault is enabled.

参考资料:https://discussionschinese.apple.com/thread/86815

https://apple.stackexchange.com/questions/379080/hide-a-user-account-from-the-login-screen-of-macos-catalina

https://discussionschinese.apple.com/community/mac_os

相关推荐

快拨网络电话的优势与使用教程是什么?
beat365平台正版

快拨网络电话的优势与使用教程是什么?

🗓️ 07-14 👁️ 916
金无足赤的意思
365bet盘口

金无足赤的意思

🗓️ 08-26 👁️ 8974
喜欢吃精液的行为是否正常及原因
365bet盘口

喜欢吃精液的行为是否正常及原因

🗓️ 09-25 👁️ 9612

友情链接