I am porting an application from Windows to Linux (specifically Ubuntu 14.04). The application needs to write data to a network shared volume on a NAS.
On Windows, my application can access the SMB3 shared volume on the NAS as long as these conditions are met:
- it knows the UNC path of the SMB3 shared volume
- the account under which the application runs is authorized (i.e. same username and password between the client and the server).
I don't need an extra step of mounting or mapping the SMB3 shared volume outside of the application.
Is it possible to achieve a similar effect on Linux? The important point is that I don't want to touch fstab or autofs, if possible. I want configuration for my application to be centralized. If I have to modify fstab or setup autofs rules, then I'm starting to spread configuration all over the place, from the point of view of my application. The network shared volume is only used by this particular application; The rest of the system doesn't care.
The NAS supports either SMB2/3 or NFSv3/v4, and I have no opinion regarding using one protocol over another.