-
Notifications
You must be signed in to change notification settings - Fork 250
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
duplicate action does not preserve executable bit for all files #207
Comments
Also, do you happen to know if it is possible to copy an unregistered WSL? |
I note that on the old computer I probably edited all these files from Windows, and then used chmod +x in linux. |
OK, it looks to me like this is one of the bad things that happens when editing files directly from Windows. That must have removed three extended attributes, and the extended attribute for the executable bit was restored by chmod +x, but ignored when duplicating the WSL install - presumably something only looks for one of the other extended attributes, and they were missing so it concluded that these files did not have linux permissions. Compare the extended attributes from a file which loses the execute flag, and one which does not:
|
After a motherboard failure I put my old hard drive in another windows computer and found that I can load the old WSL installs with lxrunoffline. It all seems to work fine - the only thing a little strange is there is a warning message from fstab when I start
wsl
, which I haven't figured out yet:I have to stopp lxssmanager to be able to duplicate the WSL install.
C:\Windows\System32\sc.exe stop LxssManager
If I do that and then use lxrunoffline to duplicate the WSL install, it seems to work, except one of the first things I notice is that a few of my scripts in /usr/local/bin are no longer executable:
Any idea what happened, or how to avoid this?
If this seems like a bug, is there anything I can do to figure out what is special about the files that are no longer executable?
Note that there is one other file that is ---x--x--x and didn't stop being executable.
The text was updated successfully, but these errors were encountered: