ubuntu 禁用 guest 账户
第一步:
run the command(s) below:??????? (編輯如下文件)
sudo vi /usr/share/lightdm/lightdm.conf.d/50-ubuntu.confAdd the following line, save and then close.???? (在文件中加上下面這句)
allow-guest=falseReboot, and you're set.
?
第二步:
Thanks to Gunnar Hjalmarsson
Based on Gunnar Hjalmarsson comment "ubuntu-session was last updated in the middle of March. Try sudo apt-get install --reinstall ubuntu-session" when that is done, the Guest session returns.????? (第一步不是狠完善,guest可以通過某些命令恢復(fù))
After some research, this can be done a different way as well.?????? (除了第一步外,下面這步也操作下)
Open /etc/lightdm/lightdm.conf file from your terminal using the following command:?????
sudo -H vi /etc/lightdm/lightdm.confIf the file exists, then just add the following line:
allow-guest=falseOtherwise copy and paste the following into it:??? (如果文件不存在,則新建并加上如下的行)
[SeatDefaults] user-session=ubuntu greeter-session=unity-greeter allow-guest=falseSave the file and exit the editor. Reboot your system, and the changes will remain even after an update to ubuntu-session as mentioned by Gunnar Hjalmarsson's comment.
?
轉(zhuǎn)載于:https://www.cnblogs.com/welhzh/p/8280371.html
總結(jié)
以上是生活随笔為你收集整理的ubuntu 禁用 guest 账户的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 技术流 | 知乎高赞,最值得推荐的电影都
- 下一篇: 百度旗下爱乐活推倒重来,拼爹淘宝