myspaghetti / macos-virtualbox

Push-button installer of macOS Catalina, Mojave, and High Sierra guests in Virtualbox on x86 CPUs for Windows, Linux, and macOS
GNU General Public License v2.0
13.5k stars 1.12k forks source link

How to give permission to delete temporary files #463

Closed KraynSG closed 3 years ago

KraynSG commented 3 years ago

When I try to delete the temporary files with the command "./macos-guest-virtualbox.sh prompt_delete_temporary_files" in Cygwin, it respond :

-bash: ./macos-guest-virtualbox.sh: Permission denied

How can I give the permission to delete it ?

myspaghetti commented 3 years ago

Hi, thanks for the bug report! Please run the following command and attach the debug.txt file here:

bash -x ./macos-guest-virtualbox.sh prompt_delete_temporary_files 2> debug.txt
KraynSG commented 3 years ago

Thanks for the amazing respond time !

chapit-nicolas commented 3 years ago

debug.txt

In case where @KraynSG did not add the debug. Got the same issue.

myspaghetti commented 3 years ago

@chapit-nicolas the debug.txt shows that the VM is running, and the script won't delete the temporary files unless the virtual machine is powered off and without a suspended state.

Another possible issue is that the script directory was copied and the script file lost its execution permission. In which case, you can run the script with bash ./macos-guest-virtualbox.sh prompt_delete_temporary_files or you can add the execution permission with chmod u+x macos-guest-virtualbox.sh and then run the script with ./macos-guest-virtualbox.sh prompt_delete_temporary_files

chapit-nicolas commented 3 years ago

Arff right, there was a message saying that... Sorry.

@KraynSG Was it the same reason for you?

KraynSG commented 3 years ago

Idk