SourceForge has been redesigned. Learn more.

Database location

  • Todd

    Todd - 2011-06-20

    I am looknig for the place where PasswordSafe stores the path to the database.
    Where is the database path locatoin stored on a Windows XP, Windows Vista and
    Windows 7 workstation? We want to be able read that path to backup the
    existing database. Thank you.

  • DrK

    DrK - 2011-06-20

    Repeating the question in multiple places will not guarantee an answer and
    only annoys people.

    However, there is no guarantee it is saved anywhere.

    Although the information about previously opened databases can saved in the
    "pwsafe.cfg" file in "C:\Documents and Settings\<username>\Application
    Data\PasswordSafe" in Windows XP and in
    "C:\Users\<username>\AppData\Local\PasswordSafe\" in Vista and Windows 7, a
    user may set Password Safe never to save the information in this file and so
    it will not be there and there is no way you can find it.

    Also, the user does not have to use the ".psafe3" extension but can hide the
    database wherever they like with any name and any extension and never save
    that they opened it.

    Does this help?

  • Todd

    Todd - 2011-06-22

    Thank you for the response. My intention was not to duplicate the question, I
    thought I posted the question in the wrong forum, so I tried another. As to
    your response, if I understand you correctly, the database location is not
    stored anywhere on the workstation if a pwsafe.cfg file is not defined (which
    it is not in our case). Since the database file can be named anything and can
    be stored anywhere, how does passwordsafe know where to open the database
    file? Any information you may have would be helpful.

    Thank you.

  • DrK

    DrK - 2011-06-22

    If the pwsafe.cfg file is in the user's Application Data area (different
    locatino for XP than Vista & 7) then it can be stored there.

    If this config file is not used, then it will be stored in the user's registry


    where "(appname)" is "Password Safe".

    For PasswordSafe V1 & V2, "(companyname)" was "Counterpane Systems".

    For PasswordSafe V3, "(companyname)" is "Password Safe".

    The Key for the last opened opened database is: "currentfile".

    Databases saved on the Recent DB lists are saved in the "MRU" section and have
    keys of the form "SAfeNN", where NN = 01, 02, 03 etc.

    If these are not in the registry and there is no pwsafe.cfg file, then every
    time the user starts Password Safe, the last opened database will be blank and
    the user will need to use the browse button to go an select it. Some users use
    this function to ensure no one can easily find the names of their Password
    Safe databases.

    If there is no pwsafe.cfg file and there are no values in the user's regisrty,
    then a new pwsafe.cfg file will be created in the appropriate Application Data


    • CNU

      CNU - 2013-03-11

      Hi David,

      I am in similar situation as discussed about, while Appv. sequencing the Password safe latest version 3.x for VDI (in non persistent mode) and streaming the sequenced application via Application virtualization server hosted.
      I have sequenced the application but unable to define the user registry HKEY_CURRENT_USER\Software(companyname)(appname)(sectionname)(valuename, with the format discussed here. could you pls. help in knowing me the exact registry structure in defining the pwsafe.cfg file, so that the application can save the user pwdsafe data instances when ever he logins to password safe application, instead of user browsing the database file everytime the application is used.
      In my case, I have checked the user registry HKEY_CURRENT_USER\Software(companyname)(appname)(sectionname)(valuename) is not defined and there is no pwsafe.cfg file located.

  • DrK

    DrK - 2011-06-22

    Slight typo - should be "SafeNN" and not "SAfeNN". Important in the pwsafe.cfg
    configuration file as XML is case sensitive.


Log in to post a comment.