How to change v2.0.9 server password?

I’m trying to change the server password with Duplicati.CommandLine.ServerUtil.exe change-password. The server is asking me for the current password but I don’t know it. Which password is used for a new install?

PS: Since the tray icon can connect there seems to be a shared pw somehow. Would I need to change this one also after changing the server’s pw?

Thanks

The password is randomly generated, so there is no way to obtain that password. Thats the price for not falling into the “default password” trap.

For most uses, you do not need to set a password, so unless you need to connect to the Duplicati server from something other than the TrayIcon, I would advise keeping it random.

If you do need to know the password to the server, you need to supply your own password to the server, which can be done with one of the methods:

  • Start the server/service once with --webservice-password=<new-password> (make sure it is not already running)
  • Use Duplicati.CommandLine.ServerUtil.exe / duplicati-server-util and set --server-datafolder=<path to folder with Duplicati-server.sqlite>
  • Use the TrayIcon to open the page, and change the password in “Settings”
  • Obtain the initial signin link from the Event Viewer / system logs and open in a browser, then change the password in “Settings”

If you are using the TrayIcon with a hosted server (default setup) the TrayIcon can communicate directly with the server and does not need a password. This also means that changing the password does not affect the TrayIcon. If you run the server separately and start the TrayIcon with --no-hosted-server you would need to specify the password or --server-datafolder for the TrayIcon as well.

I have written a post with more details on the Duplicati authentication system and how you can use it.

1 Like