pwsafe icon indicating copy to clipboard operation
pwsafe copied to clipboard

Database lock not removed after system shutdown/logout while PWS is running.

Open jjberk opened this issue 1 year ago • 1 comments

Using PWS 1.18.2 flatpak version on Linux Mint 20.3

When shutting down the OS while the PWS database is in use,the database lock is not removed.

jjberk avatar Feb 16 '24 11:02 jjberk

I have Ubuntu 23.10 virtual machine. I can't reproduce the problem.

  1. Normal operating system power-off a) When I opened Password Safe v1.18.2 flatpak in Read/Write mode (make sure "Open as read only" is unchecked at master password dialog) I see in directory where .psafe3 fie is saved new .plk lock file appeared as expected. b) I left Password Safe untouched (open and in R/W mode). c) I selected Power Off from Ubuntu's option. d) After power-off I turned on Ubuntu again and checked Password Safe directory and there is no .plk file as expected. I can't reproduce the problem. e) Password Safe can normally be opened in Read/Write mode.

  2. Power-off from virtual machine a) The same as step 1a) and 1b) b) I clicked on virtual machine power-off, that is the same if on physical machine electricity power-off button is pressed. c) I turned on Ubuntu again and I can still see .plk file in Password Safe directory and obviously Password Safe reports error when trying to unlock database with master password in Read/Write mode as expected.

Possibilities:

  • You have power-off machine by force (like in step 2).
  • Your have had plenty of programs opened that were not responding to operating system request to exit gracefully. Then operating system closed programs with force. This is actually pretty bad way of powering off your computer, because you can lose your data or in case of Password Safe lock file can be left behind.
  • Something special like some bug in OS, Password Safe and similar

I think Password Safe correctly (at least on my system) clears lock file.

Any details are more then welcome.

igor2x avatar Feb 16 '24 14:02 igor2x