Hi Nick,
I finally made some progress.
First, I just want to recall that this permissions issue started to happen after the computer was joined to the Active Directory domain. It don't know if this help any understandings but this is here...
What I tried was :
- remove the Windows Services that was created with nssm.exe prior to the computer joining the AD, and recreate the service. Didn't help.
- remove WinFSP, reboot and reinstall WinFSP. Didn't help either.
What helped me was this post from @ghost (@pbm3 I believe before his Github account was deleted):
The problem was indeed the missing uid.
'rclone.exe mount gdrive: X: --config rclone.conf -o uid=197609' did fix the folder duplication for me.
And this WinFSP FAQ related to FUSE mounts:
Alternatives include
-o uid=-1,gid=-1
, which presents files as owned by the user and group that launched the file system and-o uid=-1,gid=11
, which presents files as owned by the user that launched the file system and the group "Authenticated Users". (Thefsptool
utility in thebin
subdirectory of the WinFsp installation directory can be used to convert Windows accounts/SID’s to UID’s and vice versa.)
So I ran the 'fsptool' and noted the Administrator 'uid' which was 197108 on my side, edited the Windows Service and added -o uid=197108,gid=11 at the end of the rclone mount command.
Now Administrator user and Authenticated Users group have write permissions and everything is fine.
Well... At least Administrator can write into the mount.
Still, it's not clear to me whether or not rclone has a -o command line option.
What bothers me is that when using uid=<any_user>,gid=544, the Administrator cannot write into the mount despite being a member of group 544 which is the local admin group. Looks like the WinFSP-FUSE permission set for gid is read-only.
[EDIT] Actually...
- when using uid=<any_user>,gid=544, the Administratror account can create / delete files but creating a folder results in 4 different folders (the retry/fail loop)
- when using uid=197108 or uid=65792 (ID of user Everyone), the Administrator account has no issues creating / deleting any files and creating a folder actually creates a folder as anyone would expect (not 4 folders).
Best regards,
Frédéric.