Accessing Windows Network Shares from a FC on Linux

I have a FC server running on Linux (the pre-configured VM) and I want to add a file share on a Windows machine to FC (as a Network Share).

I’ve configured ‘/var/www/html/config/cloudconfig.php’ to enable network file sharing:
‘define(“TONIDOCLOUD_ENABLE_NETWORK_SHARE_MOUNTS”, true);’

Reading the documentation, it refers to changing the user which the FC services are running under to ensure that FC can access the shares, but those instructions are only relevant to a Windows server, not a Linux server.

How do I setup FC to enable this?

Hello @SamboNZ

As FileCloud runs on the Linux platform, you must first mount the Windows network share on the Linux machine. Then, use this mount path when you add the network share from the FileCloud Admin Portal.

Also, you need to ensure that Apache user in the FileCloud server should have full access to this mounted path.

Hi @SamboNZ

You will need to mount the remote resource (Windows path) as a CIFS mount in your Linux Box. You may use this link for reference.

Create a folder on your Linux box to mount the remote resource.

When mounting, you may run the commands as the root user and grant the necessary permission to the Apache user. Make sure to include the uid and gid options to grant ownership of the folder to the Apache user.

Once mounted correctly, you should be able to add a Network Share from the FileCloud Admin Portal pointing to the folder created which was CIFS mounted on your Linux box.