cPanel & WHM Version 100 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!
This object is in archive! 

Allow config file for variables example: /scripts/hackcheck

Duane C shared this idea 8 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