Hi, so I have currently shared a nfs folder from linux, enabled nfs features in windows and I am now able to mount this folder as a drive.
On enabling unsecured logins I can also access this using the address bar in file explorer. I want to know if it is possible to connect to the nfs share using WNetAddConnection() API, In the event viewer I can see that this defaults to smb when attempting to connect and also manages to connect but sets an error code 67, but then I want to know why it works with the address bar in file explorer.
If I try to operate on the path directly with APIs like createfilew etc it seems to work(after enabling insecure guest login), but some APIs seem to trigger crowdstrike falcon or defender as malicious behaviour.
Also according to some resources online I need to set guid and uid to be able to write to the folder/drive. I have done this in registry, I want to know if these can be done programmatically and is absolutely necessary or if there are other ways of doing this.
The event where wnedaddconnection() seems to have been successful
Also is there a way to do secured login for this nfs share instead of doing insecure login, because currently I get error 67 for this.
Thanks in advance for taking the time to view and answering this.
***Moved from Windows / Windows 11 / Files, folders, and storage***