ubuntu禁用Guest用户(Guest User Session)

 时间:2026-02-16 22:47:29

1、 ubuntu 11.10有了客人会话模式,于是有人便有了这个问题:能不能像Windows那样可以禁用或启用来宾账户(Guest)登录呢?在windows下是很简单,但是这个在ubuntu 11.10下该怎么办呢。看到中文论坛上的解决方法:

sudo apt-get remove gdm-guest-session

测试后并不奏效。

2、其实以下为一种有效的解决方法:(英文很简单就不翻译)

if you wish to remove or disable the guest session from the login screen, open a shell terminal (use the Dash to search for “terminal”), then type sudo gedit /etc/lightdm/lightdm.conf. That command will open LightDM’s configuration file (after you authenticate) in Gedit, a text editor. By default, that file reads:

sudo gedit /etc/lightdm/lightdm.conf[SeatDefaults]greeter-session=unity-greeteruser-session=ubuntu

添加 allow-guest=false , 即如下内容:[SeatDefaults]greeter-session=unity-greeteruser-session=ubuntuallow-guest=false

保存退出,OK,收工!

3、 For ubuntu 13.10,请按照以下方法操作:

sudo gedit /etc/lightdm/lightdm.conf.d/50-unity-greeter.conf 

在最后添加:

 allow-guest=false

4、 Ubuntu14.04 和13.10 类似,只是文件位置有所改变,/usr/share/lightdm/lightdm.conf.d 的50-unity-greeter.conf 

同样添加:allow-guest=false

  • 处理win7无法与Ubuntu18进行SSH连接的问题
  • Windows7下安装phpstudy
  • centos系统利用downloadonly插件进行下载RPM包
  • putty登录远程linux系统
  • everything怎么设置以管理员身份运行?
  • 热门搜索
    竖版手抄报 抗日战争手抄报 校庆手抄报 歌颂祖国手抄报 文明礼貌手抄报 我爱祖国的手抄报 科学幻想手抄报 新学期手抄报 开学了手抄报内容 小学生手抄报制作技巧入门