On 09/08/2017 01:39 PM, Simon McVittie wrote:
> You might also be able to use loginctl to list sessions, then something
> like "loginctl unlock-session 42" to unlock your session.
no, that did not work after I got locked in for the 3rd time. I was able
to lock and unlock manually, but the problem comes when it gets locked
after some idle time.

see logs attched


pravi@nishumbha:~$ loginctl list-sessions 
   SESSION        UID USER             SEAT             TTY             
        12       1001 srud             seat0            /dev/tty2       
      2554       1000 pravi                                             
        c1        117 Debian-gdm       seat0            /dev/tty1       

3 sessions listed.
pravi@nishumbha:~$ loginctl unlock-session 2554
pravi@nishumbha:~$ sudo loginctl unlock-session 2554
pravi@nishumbha:~$ loginctl session-status 2554
2554 - pravi (1000)
           Since: Fri 2017-09-08 22:22:50 IST; 4min 30s ago
          Leader: 13493 (sshd)
          Remote: 192.168.2.100
         Service: sshd; type tty; class user
           State: active
            Unit: session-2554.scope
                  ├─13493 sshd: pravi [priv]
                  ├─13512 sshd: pravi@pts/4
                  ├─13513 -bash
                  ├─13803 loginctl session-status 2554
                  └─13804 pager

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to