Skip to content
This repository has been archived by the owner on Jun 12, 2020. It is now read-only.

Minor fixes for installation and custom user handling #23

Merged
merged 1 commit into from
Jun 1, 2018

Conversation

hadret
Copy link

@hadret hadret commented Jun 1, 2018

First change introduces restic_version for handling file name in /tmp/. This will allow upgrades and downgrades of restic client in environments that are not constantly restarting/reloading/cleaning up (Ansible Tower in our case).

Second change enforces restic_user variable on the installed restic client. I think this actually wouldn't work should you specify any different user in the variable as there's '0750' mode on the file, which would lack the executable bit for the group (that was set properly via restic_group).

dest: '{{ restic_install_path }}/restic'
mode: '0750'
owner: 'root'
owner: '{{ restic_user }}'
Copy link
Owner

@paulfantom paulfantom Jun 1, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using root as a binary owner is a security feature.
Intention behind using root as an owner and setting mode to 0750 was that a user running restic command would be able to run it when he is in the restic_group group, but he won't be allowed to modify it.

Why did you change it? It doesn't work or there is some another issue?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, my bad! I somehow misread the mode and thought 5 was r+w whereas it's r+x -- it's much better how it was, I will ditch the second commit then! :)

@paulfantom paulfantom merged commit 949d64f into paulfantom:master Jun 1, 2018
paulfantom added a commit that referenced this pull request Dec 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants