Announcement

Collapse
No announcement yet.

Problem with stand-alone linux installation and integration_scripts

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with stand-alone linux installation and integration_scripts

    Hi,
    I have installed imunify-antivirus as stand-alone on Ubuntu 20.04.

    Install process goes well but looks like antivirus didn't get list of users from integration script.

    I have created bash script get-users-script.sh like in documentation.

    Code:
    echo "{
      \"data\": [
        {
          \"id\": 998,
          \"username\": \"user1\",
          \"owner\": \"root\",
          \"package\": {
            \"name\": \"package\",
            \"owner\": \"root\"
          },
          \"email\": \"mail\",
          \"locale_code\": \"EN_us\"
        },
        {
          \"id\": 1001,
          \"username\": \"user2\",
          \"owner\": \"root\",
          \"package\": {
            \"name\": \"package\",
            \"owner\": \"root\"
          },
          \"email\": \"mail@mail\",
          \"locale_code\": \"EN_us\"
        }
      ],
      \"metadata\": {
        \"result\": \"ok\"
      }
    }"​
    When i run script I get valid JSON

    Code:
    {
      "data": [
        {
          "id": 998,
          "username": "user1",
          "owner": "root",
          "package": {
            "name": "package",
            "owner": "root"
          },
          "email": "mail@mail",
          "locale_code": "EN_us"
        },
        {
          "id": 1001,
          "username": "user2",
          "owner": "root",
          "package": {
            "name": "package",
            "owner": "root"
          },
          "email": "mail@mail",
          "locale_code": "EN_us"
        }
      ],
      "metadata": {
        "result": "ok"
      }
    }​
    At location /etc/sysconfig/imunify360 I created file integration.conf with code below:

    Code:
    [paths]
    ui_path = /opt/imunify
    
    [integration_scripts]
    users = /opt/get-users-script.sh​​
    When I run installation everything finish well.
    Code:
    bash imav-deploy.sh -y
    but the problem is in user list. If I list users, I can see only users with ID from 1000 what is uid_min in the file /etc/login.defs, but in documentation I found this

    Code:
    If you want to see a specific list of users (note, that all of them must be real linux users accessible via PAM), you can specify the users option in /etc/sysconfig/imunify360/integration.conf​
    and I hope that need to work.

    If I run

    Code:
    imunify-antivirus malware user list
    I get:

    Code:
    CLEANUP_STATUS       HOME            INFECTED     INFECTED_DB        SCAN_DATE           SCAN_ID          SCAN_STATUS        USER
    None              /home/user2            0                            0                          None                      None                    None                  user2​
    Here is in the list only user which have id 1001

    How to handle custom users, thank you.

  • #2
    Hello Petar!

    If I list users, I can see only users with ID from 1000 what is uid_min in the file /etc/login.defs

    Indeed, Imunify360 will use Linux system users limited by UID_MIN and UID_MAX parameters from the /etc/login.defs file. You can try to change the UID range so that users from your list under UID 1000 will be counted as well.​

    Please be advised to compare the whole integration.conf file with the examples provided here: https://cloudlinux.zendesk.com/hc/en...amples-imunify

    Comment


    • #3
      Thank you alevchenko on reply.

      Comment

      Working...
      X