antimalware:monitoring:paths

Configure the anti-malware real-time file monitoring paths used when default_monitor_mode is set to /usr/local/maldetect/monitor_paths

sentinel --task=antimalware:monitoring:paths --oper=<path_add|path_del> --value=<string>
Option
Value Description
--oper <string> The operation you want to perform. Operations: path_add, path_del
--value <string> The value you want to add or delete.
--restart <yes> Restart the service after saving settings.

Examples

// add a path
sentinel --task=antimalware:monitoring:paths --oper=path_add --value=/var/spool/cron --restart=yes

// remove a path
sentinel --task=antimalware:monitoring:paths --oper=path_del --value=/var/spool/cron --restart=yes

// monitor the shared uploads directory in real time
sentinel --task=antimalware:monitoring:paths --oper=path_add --value=/var/www/vhosts/shared/uploads --restart=yes

Related Pages