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

rsync in WSL2 to external harddrive gives Operation not permitted error #9239

Closed
1 of 2 tasks
sorenwacker opened this issue Nov 30, 2022 · 2 comments
Closed
1 of 2 tasks

Comments

@sorenwacker
Copy link

Version

10.0.22000.1219; Invalid command line option: --version

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

4.19.104

Distro Version

22.04

Other Software

Using an encrypted harddrive mounted with Veracrypt 1.25.9.
And rsync version 3.1.3 protocol version 31.

Repro Steps

I mount the harddrive first with Veracrypt and then with sudo mount... within WSL2.

Then I run rsync with the target folder a subfolder on the harddrive.

Expected Behavior

It should copy files and directories to the harddrive.

Actual Behavior

Only folders are created. Files fail with the error Operation not permitted (1).

Apparently, that could be worked around with sudo rsync..., but this is not a very appealing and secure solution.

Diagnostic Logs

No response

@NotTheDr01ds
Copy link

Try adding -o metadata,uid=1000,gid=1000, or at least the uid/gid. See this comment on #3187.

@sorenwacker
Copy link
Author

sorenwacker commented Jan 2, 2023

Works. Thank you.

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