M
M
m2_viktor2015-06-01 21:10:49
ubuntu
m2_viktor, 2015-06-01 21:10:49

Ubuntu after pm-hibernate does not require password for gnome session, what to do?

Hello, on my home computer Ubuntu 14.04. In the evenings, I fall asleep by turning on the movie, in the shell I run a small one-line script on behalf of the superuser:

#/bin/bash
sleep 1h; pm-hibernate

And everything would be fine, but after exiting such hibernation, the password to enter the graphical session is not required at all, i.e. while I'm at work, even a cat can accidentally wake up the system and start interacting with the session. In this case, if the system goes to sleep from the button on the panel, then a password is required, as it should be. How to make gnome require a password to login to a graphical session after pm-hibernate?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SagePtr, 2015-06-01
@m2_viktor

Run the command before hibernation:
gnome-screensaver-command -l

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question