Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Minor

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.

Expandall

Prerequisites

Expand
titlePrerequisites

The following steps are required for both Root user and Rootless user before you do the specific steps described in the sections below: 

  1. Install the cifs utility on the host machine:

    Code Block
    titleInstall cifs
    apt install -y cifs-utils


  2. Create the mnt/salto_share directory inside the Physical Access directory:

    Code Block
    titleCreate directory
    mkdir /mnt/salto_share


Mount import folder path - Root user

Expand
titleMount import folder path - Root user
  1. Mount the import folder path using the root user:

    Code Block
    titleMount import folder path
    sudo mount -t cifs //<Salto_IP>/<import_path> /mnt/salto_share -o nobrl,username='<Salto_Windows_Admin_User>',password='<Admin_User_Password>'


  2. Perform a test by creating a file in the mounted folder.

Mount import folder path - Rootless user

Expand
titleMount import folder path - Rootless user
  1. Prepare a credentials file for the mount. The credentials are for the Windows service account.

    Code Block
    titlePrepare credentials file
    username=<WindowsSvcUser>
    password=<Pass>
    domain=<Domain>


  2. Create the mount for the Docker user by adding the following line in /etc/fstab:

    Code Block
    title/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


    Info

    If required, you can change the full permission (0777) for thedir_mode and file_mode parameters.


  3. Execute this command to mount:

    Code Block
    titleMount import folder path
    mount -a


  4. Perform a test by creating a file in the mounted directory folder as the rootless user.


This article is added with the Smart ID 23.04 release.

Related information