#1647 Read-only Database

KeePass
closed
nobody
5
2013-09-23
2012-10-06
Morphlin
No

Hi,
Currently, if a keepass database has the readonly attribute (windows), any attempt to save to it fail and an error message appears saying to try again.
It would be nice if instead, when keepass opens the database, the records would be locked to modifications and any attempts to save would remind the user that the database is readonly.
I use the readonly flag on a keepass file when it's a copy on a usb key and creating an entry on such device can easily cause data loss.
Thank you
Alex

Discussion

  • Dominik Reichl
    Dominik Reichl
    2013-07-06

    • status: open --> closed
    • Group: --> KeePass
     
  • Dominik Reichl
    Dominik Reichl
    2013-07-06

    There is no need to prevent modifications when opening a read-only database. A user can always use the 'Save As' command to save it to a location of his choice (where he has write access) and eventually synchronize it with the other copy later, i.e. no data loss can occur.

    Best regards,
    Dominik

     
  • larsen255
    larsen255
    2013-08-12

    I support Alex´s proposal. Instead of showing a message "Failed to save..." and "The target file might be corrupted..." which might confuse an inexperienced user, it would be better to have a message like "The file is read-only".

     
  • PhoenixDev
    PhoenixDev
    2013-09-23

    Hi Dominik,

    Please consider a usage where there is a main/ central database for all new and edited entries, and a read-only copy on secondary devices that only have access to a (backup) copy of that database (e.g. a USB stick). Saves should only be allowed in the main database. In my opinion, you should not force users to save the changes to a temp database and synchronize, because that is not an easy thing to do for a casual user. It would be very helpful indeed if you would disable the OK button on the Edit Entry dialogs to prevent saves from happening.

    Best Regards,
    PhoenixDev