Menu

How-to-disable-auto-login

green

How to disable auto-login for security

It might be important for Live System with persistence.

The default Live System does not require login password, as auto-login is set by default for users' convenience.
But you can change this behavior into manual login. There are 2 ways below for this.

  1. Installation of XDM
    To install X display manager will replace existing Lightdm. Run the following command.
    apt install xdm
    After installation, delete Lightdm if it is not necessary anymore. Then, run the commands below.
    apt remove lightdm*
    apt autoremove

  2. Editing Lightdm.conf file
    By editing /etc/lightdm/lightdm.conf file, you can disable auto-login. Set as follow.
    Open lightdm.conf by editor such as nano or pluma as root.
    Comment line 88 ---> #autologin_user=USERNAME


Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.