Ubuntu 12.04 禁用客人会话(guest session)

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

sudo apt-get remove gdm-guest-session

测试后并不奏效。其实以下为一种有效的解决方法:(英文很简单就不翻译)

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-greeter
user-session=ubuntu

添加 allow-guest=false , 即如下内容:

[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
allow-guest=false


保存退出,OK,收工!

然后关机重启一下,进来的时候就能看到了,关闭了客人会话模式了!



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值