Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions on config directories #70

Open
anton-johansson opened this issue Dec 15, 2020 · 1 comment
Open

Permissions on config directories #70

anton-johansson opened this issue Dec 15, 2020 · 1 comment

Comments

@anton-johansson
Copy link
Collaborator

The playbook sets a bunch of permissions to 755, see here.

We had an idea of using a controller host (a very simple VM), where we execute the playbook for different clusters. This way, we make sure we always have the correct ~/.ktrw directory, we can easily back it up and we avoid risks of re-creating certificates, etc. It also seems a bit quicker to run it like that compared to over from localhost over VPN (which we do a lot these days).

The fact that KTRW wants 755 makes it a bit difficult to work with these with different users. It would be nice if they could be 775 instead, so we could have group permissions. But maybe that's not optimal for when they actually reach the destination servers... There, we'd want 755 I guess?

Do you have any ideas or suggestions, @amimof?

@amimof
Copy link
Owner

amimof commented Jan 11, 2021

Hi @anton-johansson
I guess it doesn't matter what permissions the config files have from the control host (localhost) so we change that to 775. However the mode should really be 755 or less on the target host. To solve that we could add mode directive to each copy module so that files/folders have 755 when they land on a target host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants