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

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
  • I did, restart my PC and it shows the password entry field, but I was not able to enter there anything. Once I click on keyboard it immediately log me in. Possibly more details may be helpfull – Artem Zhukov Jul 1 '16 at 13:17
  • At the startup the system asks my for a "default keyring password", maybe this is an issue? – Artem Zhukov Jul 1 '16 at 13:18
  • You have no password for your user account: see above in the answer how to set a password for a user... – Neni Jul 1 '16 at 14:18
  • I did like Neni said, but no changes. Still not asking me for a passoword. Any other ideas? – Artem Zhukov Jul 2 '16 at 10:21
  • I updated the answer, give it another try. I can't simulate your problem on my Laptop, so let's try step by step... – Neni Jul 5 '16 at 22:28
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

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!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.