How To Disable Guest Session In Ubuntu Xubuntu

Table of contents:

How To Disable Guest Session In Ubuntu Xubuntu
How To Disable Guest Session In Ubuntu Xubuntu

Video: How To Disable Guest Session In Ubuntu Xubuntu

Video: How To Disable Guest Session In Ubuntu Xubuntu
Video: How to Disable Guest account in Ubuntu 2024, November
Anonim

On Ubuntu and derivatives operating systems, the guest login feature is enabled by default after installation. This function allows any user to log into your PC without a password. Even if the guest session is limited and a stranger cannot access your data, not everyone will like this feature. Fortunately, it can be easily disabled.

guest session
guest session

Necessary

  • -5 minutes of time.
  • -Skills in the command line.

Instructions

Step 1

We start the terminal emulator.

terminal emulator
terminal emulator

Step 2

Let's open the display manager configuration file lightdm for editing with superuser rights. To do this, run the command in the terminal window:

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 when prompted.

running the editor with superuser rights
running the editor with superuser rights

Step 3

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.

Recommended: