NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.94k stars 13.96k forks source link

Duplicati service user #43615

Open layus opened 6 years ago

layus commented 6 years ago

Issue description

Currently, the duplicati service runs with it's own user. As a backup program, it makes it quite useless to backup other user's data.

There seems to be some traction to implement a multi-users duplicati server. In the meanwhile, duplicati should run as a user service (systemd --user)

If the current behavior is the intended behavior, this should be aded to the documentation of the duplicati service. Something like

Duplicati runs as it's own user. It will only be able to backup world-readable files.

Another option is to allow changing the user that runs the service, or run it as root (may no be such a perfect idea either...)

/cc @nyanloutre

domenkozar commented 5 years ago

I've pushed e8916cc6af7daf2de5008f3063441c8b3f00e9ac and I'm using root to run the backup as I need to do cross-user backups.

I believe duplicati should run the backup under root, but web under normal user, but that's an upstream issue.

stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.