File permissions

I’m having trouble wrapping my head around the file permissions for the repository. I’m using the cml tool with the root user to ensure access to my system but it’s creating files owned by root in the repository. This is an issue because my other client doesn’t have root access but I would like to duplicate these snapshots/chunks.

I can change the permissions after the fact but is there a way to grant root access to the cml tool but also have it commit snapshots and chunks as a different user?

Thanks

It’s creating files as root because you run it as root and your destination is a local drive. You could add a post-backup script to chown all files back to what you want but I’d consider alternative approach (running backup tools, or any tools for that matter as root is not the best thing to do).

Instead, create a separate limited user for backup. Grant that users read access to whatever you need to backup and run Duplicacy under that user.

Alternatively, use any backup destination other than local disk. Then you can login to that destination with any other set of credentials (which again would be some user dedicated for the backup task)

3 Likes