Score:0

How to make "*.sh" executable on Hyper-V shared drivers

bw flag

When enabling the Enhanced Session Mode in Hyper-V and shared a "D:\" drivers to the Ubuntu guest VM, all "*.sh" files inside the shared "D:\" drivers will only have "rw" permissions and the "x" permission is missing when checking by "ls -alith"

It seems that Hyper-V mounts the shared "D:\" drivers as "read-write" only but not executable.

How to make Hyper-V to mount all shared drivers as executable for all "*.sh" files? Or How to mount the shared Hyper-v drivers manually inside the guest Ubuntu vm?

Score:0
bs flag
knu
 mount -o remount,exec  /path/to/mountpoint

Apart from that, the .sh file has to have the exec bit set. You can view that using ls -l ..., and if necessary set with something like:

chmod ug+x /path/to/*.sh
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.