This object is in archive! 
Allow config file for variables example: /scripts/hackcheck
Open Discussion
Needing to specify accounts to ignore would require adding an additional line. There are other files where this could make other areas easier. For example if I wanted to ignore user root2, I would have to modify this line of code to include the root2 user.
if ( $uid == 0 && $user ne "root" && $user ne "toor") {
if ( $uid == 0 && $user ne "root" && $user ne "toor" && $user ne "root2") {
Instead I would recommend a config file allowing key-value pairs / lists to be included specifying file name.
/scripts/hackcheck:
users:
root
root2
toor
Thus scripts are more configurable and can be updated cleanly allowing customization
Replies have been locked on this page!