Skip to content

Commit 1a392ac

Browse files
authored
Merge pull request #158 from dmleonov-cloudlinux/master
Per-user malware scan schedule documentation
2 parents 7d1599f + 76334ec commit 1a392ac

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

docs/command_line_interface/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,29 @@ imunify360-agent config update '{"MALWARE_SCAN_INTENSITY": {"cpu": 5}}'
493493

494494
The successful output should display the configuration file content.
495495

496+
### Per-user configuration
497+
498+
You can view and update configuration for a specific system user. Only the options allowed to end users are available (e.g., <span class="notranslate">MALWARE_SCAN_SCHEDULE</span>). Missing user options inherit values from the admin/global config.
499+
500+
<div class="notranslate">
501+
502+
```
503+
# Show effective configuration for a user
504+
imunify360-agent config show --user <username> --json
505+
506+
# Set per-user background malware scan schedule: weekly at 03:00 on Monday
507+
imunify360-agent config update '{"MALWARE_SCAN_SCHEDULE": {"interval": "week", "hour": 3, "day_of_week": 1}}' --user <username>
508+
509+
# Disable scheduled background scans for a user
510+
imunify360-agent config update '{"MALWARE_SCAN_SCHEDULE": {"interval": "none"}}' --user <username>
511+
```
512+
513+
</div>
514+
515+
::: tip Note
516+
Daily/Weekly schedules are available on <b>Imunify360</b> and <b>ImunifyAV+</b>. On <b>ImunifyAV</b>, only <span class="notranslate">none</span> and <span class="notranslate">month</span> intervals are available.
517+
:::
518+
496519
## Doctor
497520

498521
Collecting information about Imunify360 state, generating the report and sending it to Imunify360 Support Team. This command can be used in case of any troubles or issues with Imunify360. This command will generate a key to be sent to Imunify360 Support Team. With that key Imunify360 Support Team can help with any problem as fast as possible.

docs/config_file_description/README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,53 @@ to request Anti-bot Challenge again</td></tr>
292292
<td># when the background scan shall start, hour. Can be from 0 to 23, the default value is 3</td></tr>
293293
<tr><td><span class="notranslate">interval: MONTH</span></td>
294294
<td># interval of scan. Supported values: strings <span class="notranslate">`NONE`</span> (no scan), <span class="notranslate">`DAY`</span>, <span class="notranslate">`WEEK`</span>, <span class="notranslate">`MONTH`</span>, the default value is <span class="notranslate">`MONTH`</span></td></tr>
295+
296+
<tr>
297+
<td colspan="2">
298+
299+
<p><b>Per-user overrides</b></p>
300+
<p>
301+
You can override <span class="notranslate">MALWARE_SCAN_SCHEDULE</span> <b>per user</b>.
302+
Per-user config files are stored at <span class="notranslate">/etc/imunify360/user_config/&lt;username&gt;/imunify360.config</span> and support the same schema as the admin config for this section.
303+
When both admin and user values exist, the user value is used for that option; missing user options inherit the admin value.
304+
</p>
305+
306+
<p><b>Example (YAML) of per-user schedule:</b></p>
307+
<div class="notranslate">
308+
309+
```
310+
MALWARE_SCAN_SCHEDULE:
311+
interval: week # allowed: none, day, week, month
312+
hour: 2 # 0..23
313+
day_of_week: 1 # 0..7 (0/7 = Sunday)
314+
```
315+
316+
</div>
317+
318+
<p><b>CLI examples for per-user:</b></p>
319+
<div class="notranslate">
320+
321+
```
322+
# Show effective config for a user
323+
imunify360-agent config show --user <username> --json
324+
325+
# Set a weekly scan at 03:00 on Monday for a user
326+
imunify360-agent config update '{"MALWARE_SCAN_SCHEDULE": {"interval": "week", "hour": 3, "day_of_week": 1}}' --user <username>
327+
328+
# Disable scheduled scans for a user
329+
imunify360-agent config update '{"MALWARE_SCAN_SCHEDULE": {"interval": "none"}}' --user <username>
330+
```
331+
332+
</div>
333+
334+
<p><b>License notes</b></p>
335+
<p>
336+
Daily/Weekly schedules are available on <b>Imunify360</b> and <b>ImunifyAV+</b>. On <b>ImunifyAV</b>, only <span class="notranslate">none</span> and <span class="notranslate">month</span> intervals are available.
337+
If a non-eligible interval is configured, the agent will ignore it and keep the schedule at a safe default.
338+
</p>
339+
340+
</td>
341+
</tr>
295342
<tr>
296343
<th align="left"><span class="notranslate">PAM:</span></th>
297344
<th align="left"># effective way to prevent brute-force attacks against FTP/SSH</th>

0 commit comments

Comments
 (0)