Read/Write Files from Posit Workbench to Network Drive

Hi All,

We've mounted our network drive to Posit Workbench which has worked great for getting data into Workbench. My question is how to write files back to the network drive from Workbench. I've confirmed the permissions are set to read/write after mounting. I get a "permission denied" message in the Console when trying to write .CSV files to our network drive. Any insights on how to resolve is appreciated.

Hi Eric,
Are you talking about a Windows share using SMB/CIFS or about some other technology?
I would need more details in the altter case, but for the case of SMB/CIFS: In most cases the access privileges of the mounting user will be used when reading and writing files. So it might be that the mounting user has only read level access. There are different possibilities here:

  1. Use a user with write access on the share when mounting the share. Big downside is that everybody with write access on the Linux side now also has write access on the share.
  2. Add the option multiuser when mounting the share so that read and write operations use the privileges of the interacting user. The user's wanting to write will then need to authenticate themselves using an AD password or a Kerberos ticket.
  3. Use pam_mount to mount the shares in the user's HOMEusing their credentials, c.f. https://support.posit.co/hc/en-us/articles/360044190234-How-to-mount-a-Windows-SMB-CIFS-share-via-PAM