How to Remove Guest Session in Ubuntu 16.04 Login Screen
来源:互联网 发布:垄美斋官网淘宝 编辑:程序博客网 时间:2024/05/20 07:14
This is a quick guide for beginners that shows how to remove / disable the Guest account login from Ubuntu 16.04 Unity Greeter.
LightDM configuration files are located in /usr/share/lightdm and /etc/lightdm. Disabling Guest account can be easily done by adding a rule into one of the two directories. And below I made a change in /etc/lightdm:
- Open terminal from Unity Dash, or via Ctrl+Alt+T combination key.
When it opens, paste below command and run to create a sub folder:
sudo mkdir /etc/lightdm/lightdm.conf.d
Type in your password (no visual feedback on typing) when it asks and hit Enter to continue.
- Running below command to create a “50-no-guest.conf” file under this folder and write the rule allow-guest=false.
sudo sh -c 'printf "[SeatDefaults]\nallow-guest=false\n" > /etc/lightdm/lightdm.conf.d/50-no-guest.conf'
Now restart your computer and the Guest session disappeared.
3. To revert the changes, just remove the configuration file via command:
sudo rm /etc/lightdm/lightdm.conf.d/50-no-guest.conf
That’s it. Enjoy!
阅读全文
0 0
- How to Remove Guest Session in Ubuntu 16.04 Login Screen
- How to login as Root In ubuntu
- How to Modify SAP Login Screen picture ?
- How to Enable and Disable Root Login in Ubuntu
- How to increase VirtualBox Guest host Screen Size
- How to enable guest posting in phpBB3
- How To Remove Or Delete PPA In Ubuntu
- How to Change Login User in SharePoint2013?
- How to Login Automatically in PI3
- How to let ubuntu auto login
- Ubuntu 12.04: How to enable root login
- [Ubuntu]How to login with root
- How to change screen resolution in redhat
- how to clear screen in python
- how to clear screen in python shell
- How to enable sound in Ubuntu 11.04 While login as root
- How to reduce CPU soft lock up in KVM guest
- How to remove ^M in the file
- Idea下Springboot开启热启动
- 量子计算
- 语文学科知识浅谈《劝学》讲解思路
- vue.js学习笔记,vue如何生成页面
- 【Android 7.0 Audio】: AudioFlinger介绍和初始
- How to Remove Guest Session in Ubuntu 16.04 Login Screen
- 关于Struct 与 Class的区别(class 定义对象时候不能赋初值的方法何原因)
- 欢迎使用CSDN-markdown编辑器
- She was talking to three gentlemen, and her face was
- Spring事务配置的五种方式和spring里面事务的传播属性和事务隔离级别
- SourceTree安装|SourceTree添加 ssh key 方法|SourceTree关联GitHub|SourceTree的简单使用
- 2017年10月19日 第十次总结
- 【Android 7.0 Audio】: AudioPolicyService和他的码农APM
- She was then in Verona after all