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 docker.

Expandall

Prerequisites

Expand
titlePrerequisites

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

  1. Install cifs utility on host machine using the following command:

    Code Block
    languagetext
    title/root/.credentials
    apt install -y cifs-utils


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

    Code Block
    languagetext
    title/root/.credentials
    mkdir /mnt/salto_share


Mount import folder path - Root user

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

    Code Block
    languagetext
    title/root/.credentials
    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 directory.

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
    languagetext
    title/root/.credentials
    username=<WindowsSvcUser>
    password=<Pass>
    domain=<Domain>


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

    Code Block
    languagetext
    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 the following command to mount:

    Code Block
    mount -a


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


This article contains information for is added with the Smart ID 23.04 release.

Related information