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

Subcommand 'fetch' supports using flag '-s/--run.sudo' to copy files and directories to which the user does not have access permission. #20

Closed
windvalley opened this issue Jan 10, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@windvalley
Copy link
Owner

windvalley commented Jan 10, 2022

For example:

  # Use sudo as root to copy no permission files.
  $ gossh fetch host1 -f /root/foo.txt -d ./backup/ -s

  # Use sudo as 'zhangsan' to copy no permission files.
  $ gossh fetch host1 -f /home/zhangsan/foo.txt -d ./backup -s -U zhangsan
@windvalley windvalley added the enhancement New feature or request label Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant