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

simple sudo implementation #62

Merged
merged 1 commit into from
May 7, 2023
Merged

simple sudo implementation #62

merged 1 commit into from
May 7, 2023

Conversation

umputun
Copy link
Owner

@umputun umputun commented May 7, 2023

This PR addresses #60 and introduces the options.sudo field, allowing users to run script commands with elevated privileges. However, this implementation is limited, as enabling sudo for copy and mcopy commands is significantly more complex. It would require copying files to a temporary location and then executing a move command to transfer them to their final destination. Additionally, supporting glob patterns further complicates the task. Implementing sudo for the sync command is unclear, and how this could be achieved is not immediately apparent.

Considering these limitations, restricting the sudo option to the script command type is a reasonable trade-off. If users need to deploy substantial resources to root-only locations, using the root user directly is likely more efficient.

script command only support sudo, at least for now
@umputun umputun merged commit 0acfcd3 into master May 7, 2023
4 checks passed
@umputun umputun deleted the sudo branch May 7, 2023 05:00
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

Successfully merging this pull request may close these issues.

None yet

1 participant