Permissions of VirtualBox folder with Windows inside Linux
I have created a virtual folder x:\ in Windows running inside VirtualBox in Linux mapping to a Linux directory.
When I try to compile a .NET project in a submodule of Git in subdirectory nethermind of this folder,
dotnet build -c release -r linux-x64 --self-contained
...
fatal: detected dubious ownership in repository at '//VBoxSvr/blockchain/nethermind'
'//VBoxSvr/blockchain/nethermind/.git' is owned by:
'S-1-5-21-501'
but the current user is:
'S-1-5-21-1021769196-1503614675-228904748-1001'
To add an exception for this directory, call:
git config --global --add safe.directory '%(prefix)///VBoxSvr/blockchain/nethermind'
X:\nethermind\src\Nethermind\Nethermind.Runner\Nethermind.Runner.csproj(136,5): error MSB3073: The command "git describ
e --always --exclude=* --abbrev=40" exited with code 128.
Build FAILED.
X:\nethermind\src\Nethermind\Nethermind.Runner\Nethermind.Runner.csproj(136,5): error MSB3073: The command "git describ
e --always --exclude=* --abbrev=40" exited with code 128.
0 Warning(s)
1 Error(s)
How to solve this trouble with users?
Read more here: Source link
