UnauthorizedAccessException for Cygwin files with restrictive access rights
shiek opened this issue · 0 comments
shiek commented
Hi,
I'm not sure if this is a bug or works as intended.
I use Duplicati 2.0.1.72_canary_2017-07-05 and snapshot-policy=Required - Duplicati is running as a service on Win7x64. The user running the service is SYSTEM (S-1-5-18).
Error reported while accessing file: C:\cygwin\home\user\.ssh\
System.UnauthorizedAccessException: (5) Zugriff verweigert: [\\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy13\cygwin\home\user\.ssh\*]
bei Alphaleonis.Win32.NativeError.ThrowException(UInt32 errorCode, String readPath, String writePath)
bei Alphaleonis.Win32.Filesystem.FindFileSystemEntryInfo.FindFirstFile(String pathLp, WIN32_FIND_DATA& win32FindData)
bei Alphaleonis.Win32.Filesystem.FindFileSystemEntryInfo.<Enumerate>d__3`1.MoveNext()
bei System.Linq.Buffer`1..ctor(IEnumerable`1 source)
bei System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
bei Duplicati.Library.Snapshots.WindowsSnapshot.ListFolders(String folder)
bei Duplicati.Library.Utility.Utility.<EnumerateFileSystemEntries>d__22.MoveNext()
I think this should not happen. I can imagine a workaround but is there a universal solution?
The folder looks like this via ls: drwx------+ 1 user Domain Users 0 1. Okt 2016 .ssh/