3

I have a problem with restoring the password request on the lock screen. During the installation of Ubuntu I specified the auto-login option, but now I want to re-enable the password protection. Possible changes in the system settings don't help.

Thank you in advance...

Neni
  • 842

3 Answers3

1

Go to System Settings >> User Accounts and switch the Automatic Login to OFF.

Now set your preferences in the following sections:

System Settings >> Brightness & Lock

System Settings >> Security & Privacy >> Security


If not already existing, set a user-password, replace 'your-user-name' with your real user-name:

sudo passwd your-user-name

Open the following file:

gksudo gedit /etc/lightdm/lightdm.conf

Remove or comment out (#) the line: autologin-user

Save and Exit


Reinstall gnome-screensaver, update and reboot your system:

sudo apt-get install --reinstall gnome-screensaver
sudo apt-get update
sudo apt-get upgrade
sudo reboot
Neni
  • 842
0

SOLVED problem with restoring the password request on the lock screen:

  1. Log into the main admin account.
  2. Create a temporary administrator account.
  3. Log in to the temp admin account.
  4. Change password and lock setting for the main admin account.
  5. Log out and confirm the main admin account lock setting are functioning correctly.
  6. Clean up temp account as desired.
  7. Done!
ThunderBird
  • 1,963
  • 13
  • 22
  • 31
0

I was trying a lot of different options and, finally, what works for me, is installation of xscreensaver sudo apt install xscreensaver I added a shortcut Shift+Super+L to a command: xscreensaver-command -lock and now it locks my PC and unlock can be possible only if I enter the password