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.
When i run script I get valid JSON
At location /etc/sysconfig/imunify360 I created file integration.conf with code below:
When I run installation everything finish well.
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
and I hope that need to work.
If I run
I get:
Here is in the list only user which have id 1001
How to handle custom users, thank you.
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\"
}
}"
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"
}
}
Code:
[paths] ui_path = /opt/imunify [integration_scripts] users = /opt/get-users-script.sh
Code:
bash imav-deploy.sh -y
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
If I run
Code:
imunify-antivirus malware user list
Code:
CLEANUP_STATUS HOME INFECTED INFECTED_DB SCAN_DATE SCAN_ID SCAN_STATUS USER None /home/user2 0 0 None None None user2
How to handle custom users, thank you.
Comment