-
Notifications
You must be signed in to change notification settings - Fork 154
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
PoC: sync: add sudo support #305
base: master
Are you sure you want to change the base?
Conversation
NOTE This is a PoC just to start a discussion on wether such feature could be interesting. It doesn't have tests and might require refactoring. Sometimes you need to sync files that the SSH user cannot modify, and the beta endpoint doesn't have root SSH access. If the SSH user has passwordless sudo, adding to mutagen.yml sync: defaults: permissions: sudo: true will invoke the mutagen agent with sudo. Signed-off-by: Marco Molteni <marco.molteni@mailbox.org>
Thanks for the pull request. I'll leave it open for now as a discussion point about how elevated permissions could be acquired, because I think it might possibly be important for Not really a full review, but my initial thoughts are:
I don't see merging this into mainline Mutagen at the moment, mostly just due to the added maintenance burden and the support requirements (since If this could be done via |
@xenoscopic I appreciate your thorough reasonings and I have to agree on all aspects, unfortunately also on the "sledgehammer" worry, I was worried myself. I will reflect on how to go for the next step, thanks to your suggestions. Where would you prefer to continue the discussion? Here on in another place? I was a bit worried about Slack, because it is unsearchable and messy, while in a PR at least the focus stays on one thing. Or should I close this and open an issue? |
Let's keep the discussion here for now, especially since it's a good discussion to preserve for posterity. Just to clarify: this only works with passwordless |
Ok
Yes. |
NOTE
DESCRIPTION
Sometimes you need to sync files that the SSH user cannot modify, and the beta
endpoint doesn't have root SSH access.
If the SSH user has passwordless sudo, adding to mutagen.yml
will invoke the mutagen agent with sudo.
Signed-off-by: Marco Molteni marco.molteni@mailbox.org