There are two primary reasons for "Access Denied" in Windows:
It is not always obvious what the underlying cause is. I recommend using the `fsptool` utility that is included with WinFsp to view Windows permissions (use `fsptool perm .\FILENAME` for this) in SDDL format. Another tool that I often use for this purpose is the Windows built-in `cacls /S`. These tools reports permissions in SDDL format (it is a good idea for Windows file system authors to become familiar with the Windows security model and SDDL):
https://docs.microsoft.com/en-us/windows/win32/secauthz/security-descriptor-definition-language
If the problem is that another application is also using the file, the SysInternals Process Explorer or the command line utility Handle can help with identifying the application.
Bill
--
You received this message because you are subscribed to the Google Groups "WinFsp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
winfsp+un...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/winfsp/14525785-bbae-49c0-82d8-1556523dc2cbn%40googlegroups.com.
The FUSE layer of WinFsp includes an automatic translation from UNIX UID/GID's to Windows SID's and UNIX rwx permissions to Windows ACL's. For this to work correctly your file system must supply reasonable values for UID/GID and mode in the getattr call.
Alternatively you can set those values from the FUSE command line using options like -ouid=UID,gid=GID,umask=UMASK. WinFsp also supports the special value of -1 for UID and GID, which means to use the UID/GID of the user who launches the file system. For example: `-o uid=-1`, will make the user who launches the file system the owner of all files.
The utilities I mentioned earlier would help you identify problems such as these.
To view this discussion on the web visit https://groups.google.com/d/msgid/winfsp/ee9b740b-f9fe-45b3-82f6-afa02748f463n%40googlegroups.com.