Skip to content

Can I switch between root and non-root user when creating archives? #7348

Answered by ThomasWaldmann
rikrdo89 asked this question in Q&A
Discussion options

You must be logged in to vote

The process that accesses the repository files (which is borg serve if you run client/server or borg create if you do not use a ssh:// repo) creates files inside the repository directory. And these files will be owned by the user/group of that process.

If you later access these files and you use the same user, there won't be a problem as you will have permissions. But if you use a different user, you usually won't have permissions (the only exception being root as root is always permitted to access everything).

So the advice is to always use the same user to access a repo. For a client/server setup this usually is no problem as long as you use the same ssh://borg@reposerver/... url. For a…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@rikrdo89
Comment options

Answer selected by rikrdo89
Comment options

You must be logged in to vote
2 replies
@rikrdo89
Comment options

@paddylandau
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants