Mount Salto CIFS between Linux and Windows
This article is added with the Smart ID 23.04 release.
The import folder path, configured in Salto, must be mounted to the Docker container, as Salto works on the file system. The import folder path can be mounted using either root user or rootless user.
Prerequisites
The following steps are required for both Root user and Rootless user before you do the specific steps described in the sections below:
Install the cifs utility on the host machine:
apt install -y cifs-utils
Create the mnt/salto_share directory inside the Physical Access directory:
mkdir /mnt/salto_share
Mount import folder path - Root user
Mount the import folder path using the root user:
sudo mount -t cifs //<Salto_IP>/<import_path> /mnt/salto_share -o nobrl,username='<Salto_Windows_Admin_User>',password='<Admin_User_Password>'
Perform a test by creating a file in the mounted folder.
Mount import folder path - Rootless user
Prepare a credentials file for the mount. The credentials are for the Windows service account.
username=<WindowsSvcUser>
password=<Pass>
domain=<Domain>
Create the mount for the Docker user by adding the following line in /etc/fstab:
//<WindowsMachineIP>/<Folder> /home/<DockerUser>/docker/compose/physicalaccess/mnt/salto_share cifs credentials=/root/.credentials,uid=<uid>,gid=<gid>,dir_mode=0777,file_mode=0777,_netdev 0 0
If required, you can change the full permission (0777) for thedir_mode
andfile_mode
parameters.Execute this command to mount:
mount -a
Perform a test by creating a file in the mounted folder as the rootless user.