[Linux] How to Add SMB Sharing as a NFS Storage Unit?
Prerequisites:
- A machine where MetaDefender Storage Security is installed (let's call it MDSS machine)
- An SMB share from a Linux or Windows machine
Step 1:
On MDSS machine, please install the cifs-utils
package
Step 2:
On MDSS machine, create a new directory at the following path /mnt/mdss/nfs/{my-new-folder}
Step 3:
On MDSS machine, mount the SMB share in the directory created at step 2. In our testing, we have used the following command:
sudo mount -t cifs //{smb-server-ip}/{smb-folder-share} /mnt/mdss/nfs/{my-new-folder} -o username={username}
Example:
sudo mount -t cifs //10.30.50.106/Users/user1/Desktop/smb-share /mnt/mdss/nfs/my-smb -o username=User1
Please note the mount command has multiple parameters that can be configured in many ways. Feel free to adapt it to your needs. Any configuration works with our product, as long as the SMB share is mounted successfully and we have, at least, read access to it (to benefit from our remediation capabilities, we will need write access).
Step 4:
To ensure the mount is persistent, please add it in /etc/fstab . Otherwise, the mount will be lost when machine restarts.
Step 5:
From MetaDefender Storage Security user interface, add a NFS storage unit having the Mount directory the folder created at step 2.
