Hello,

Yes, it is. One solution is to use the "exec" feature like

if failed permission 755 then exec "/bin/chmod 755 /path/to/your/file"

Best Regards,



2015-07-27 2:02 GMT+02:00 Rafael Torres <[email protected]>:

> Is it possible to have monit, monitor a file for permission changes and if
> a change occurs change them back to the correct permission configuration?
>
> Regards,
>
> Rafael L. Torres Jr. MSIA, CISSP, S +, N+
> 1509 Lowell Ct.
> Crofton, MD 21114
> Cell: 757-876-1986
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general
>



-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT d(+) s++:- a C++$ ULC(+)>+++$ !P--- L+>$ !E---? W+++$ !N* !o-- K--?
w(+) !O---? !M- !V--? PS+? !PE Y+ PGP++>+++ !t-- !5 !X- R(+)>++* tv-? b(-)
DI !D- G(+)>+ e+++ h--() r->$ y?*
------END GEEK CODE BLOCK------
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to