lastpass / lastpass-cli

LastPass command line interface tool
GNU General Public License v2.0
2.85k stars 291 forks source link

lpass session does not logout on user logout (causing poweroff issue) #594

Open antecrescent opened 3 years ago

antecrescent commented 3 years ago

Whenever I try to power off my system as a non-root user after having been logged in into my vault as root, I get the following error.

$ poweroff 
User root is logged in on tty1.
Please retry operation after closing inhibitors and logging out other users.
Alternatively, ignore inhibitors and users with 'systemctl poweroff -i'

Strangely, no other users are logged in.

$ who
[user]    tty1         2021-02-10 11:32
$ systemd-inhibit --list
No inhibitors.

$ ps aux | grep lpass indicates, that the root lpass session is still active, which seems to be the problem.

Steps to reproduce Login as root, login into your LastPass vault, logout as root Login as non-root and try to poweroff the system.

Is this expected behaviour or not? Thanks for your input!