Https://jingyan.baidu.com/article/046a7b3edf9639f9c27fa995.html
How to enable and disable guest sessions in the Ubuntu15.04 systemListen to the Voice
- |
- Browse:2343
- |
- Updated: 2015-08-24 23:39
- |
- Tags:ubuntu
Step through Reading
In our previous experience sharing, we shared with you the guest session feature in the Ubuntu15.04 system, which provides a convenient and highly secure way to lend your computer to others. I think this function is still good.
However, under normal circumstances we will rarely use the guest session (guest session) This feature or we do not need this feature, so the following method to teach you how to disable the guest session this feature.
How do we restore the guest session feature after disabling?
All right, let's get started.
Tools/Materials
- Computer with Ubuntu15.04 desktop operating system installed.
Method/Step
In the previous article, we can enter the guest session via the login interface or the switch-on mode in a normal session, as shown in the following two images.
How to disable this feature.
We first open the terminal, right-click or shortcut key "Ctrl + Alt + T".
Enter the following command:
sudo sh-c ' printf ' [seatdefaults]\nallow-guest=false\n ' >/usr/share/lightdm/lightdm.conf.d/50-no-guest.conf '
Then we reboot the system and confirm that we can use guest session when we log in.
Compared to the previous, we have no "guest session" login.
We log into the system as a Lilei user.
Confirm that you can switch to "guest session" and that there is no "guest session" switch.
The "Guest Session" feature was successfully disabled.
How do I restore the guest session feature?
All we have to do is delete this file and the command is as follows:
sudo rm-f/usr/share/lightdm/lightdm.conf.d/50-no-guest.conf
Restart the system again.
Confirm that the guest session feature has been restored.
Conclusion: the "Guest session" function was successfully restored.
Steps to read
- 8
Well, this experience is mostly shared with you on how to disable and reopen the guest session feature in the Ubuntu15.04 desktop system.
Thank you.
How to enable and disable guest sessions in the Ubuntu15.04 system