Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.
This object is in archive! 

Allow config file for variables example: /scripts/hackcheck

Duane C shared this idea 11 years ago
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

Leave a Comment
 
Attach a file