In Ubuntu and its derivative operating systems, the guest log function is enabled by default after installation.
This function allows any user to log on to your PC without a password.
Even if the guest session is limited and the alien can not access your data, not everyone will like this feature.
Fortunately, it can be easily turned off.
You will need
- -5 minutes of time.
- -Needs to work in the command line.
Run the terminal emulator.
Let's open the configuration file for the lightdm display manager for editing with superuser rights. To do this, in the terminal window, execute the command:
Sudo nano /etc/lightdm/lightdm.conf.d/10-xubuntu.conf - for xubuntu or
Sudo nano /etc/lightdm/lightdm.conf.d/10-ubuntu.conf, if you are using ubuntu.
Enter your password on request.
Add the line allow-guest = false to the end of the file, as shown in the screenshot. Exit with saving: press Ctrl + X, then Y in response to the save request. We reboot the computer.