Use these instructions to mount a CIFS share in a way that prevents FileCloud from encountering any permission issues.
|Remote CIFS share path||//192.168.1.120/filecloud|
|Local mount path||/mnt/storage|
|Apache user uid|
48. Note: check your server for the right uid
|Apache user gid|
48. Note: check your server for the right gid
Ensure the command mount.cifs is present in your distro. Here is the list of packages that provide this utility in different distros.
Use the following command to mount the CIFS share:
or if you have credential files at /root/.this-creds-file:
To perform auto mounting of a Windows share, create a password file, and use it in /etc/fstab. Follow the steps here:
Create a file /root/.smbcredentials with the following content.
Change the permissions such that only root can read the file.
Now add the following line in /etc/fstab file.
Reload systemctl daemon.
Test if the line added in the fstab file works.
Now the remote share should be mounted at /mnt/storage.