12
Return to list Post new posts
Author: curyjorge98

How to disable automatic login on latest Debian OPI 5

[Copy link]

0

threads

3

posts

32

credits

Novice

Rank: 1

credits
32
Published in 2023-6-26 17:37:03 | Show all floors
On the most recent Debian OPI 5, you may deactivate automatic login by editing the LightDM configuration file. Open a terminal window and type sudo nano /etc/lightdm/lightdm.conf. Remove the '#' from the line #autologin-user= and save the file. This will turn off automatic login.
"To disable automatic login on Debian OPI 5, edit the LightDM configuration file (/etc/lightdm/lightdm.conf) and remove the '#' from the line 'autologin-user='." This increases security by requiring a manual login.

1

threads

6

posts

31

credits

Novice

Rank: 1

credits
31
Published in 2023-11-6 21:04:35 | Show all floors
Instead of editing the /lib/systemd/system/serial-getty@.service.d/override.conf file, it would be better to create a new file /etc/systemd/system/serial-getty@.service.d/override.conf, possibly empty to completely revert the customization in the override.conf file in /lib/systemd...
This prevents updates using apt from reverting your customization.

So just do
  1. mkdir -p /etc/systemd/system/serial-getty@.service.d
Copy code
and
  1. touch /etc/systemd/system/serial-getty@.service.d/override.conf
Copy code
(and also for the 'normal' getty, if you wish) as root.
12
Return to list Post new posts
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list