]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/samhain/templates/samhainrc.erb
ignore /etc/ssh/userkeys/root
[dsa-puppet.git] / modules / samhain / templates / samhainrc.erb
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6 #####################################################################
7 #
8 # Configuration file template for samhain.
9 #
10 #####################################################################
11
12 # -- empty lines and lines starting with '#', ';' or '//' are ignored
13 # -- boolean options can be Yes/No or True/False or 1/0 
14 # -- you can PGP clearsign this file -- samhain will check (if compiled
15 #    with support) or otherwise ignore the signature
16 # -- CHECK mail address
17 #
18 # To each log facility, you can assign a threshold severity. Only
19 # reports with at least the threshold severity will be logged
20 # to the respective facility (even further below).
21 #
22 #####################################################################
23 #
24 # SETUP for file system checking:
25
26 # (i)   There are several policies, each has its own section. Put files
27 #       into the section for the appropriate policy (see below).
28 # (ii)  Section [EventSeverity]: 
29 #       To each policy, you can assign a severity (further below).
30 # (iii) Section [Log]: 
31 #       To each log facility, you can assign a threshold severity. Only
32 #       reports with at least the threshold severity will be logged
33 #       to the respective facility (even further below).
34 #
35 #####################################################################
36
37 #####################################################################
38 #
39 # Files are defined with: file = /absolute/path
40 #
41 # Directories are defined with:                  dir = /absolute/path
42 # or with an optional recursion depth (N <= 99): dir = N/absolute/path
43 #
44 # Directory inodes are checked. If you only want to check files
45 # in a directory, but not the directory inode itself, use (e.g.):
46 #
47 # [ReadOnly]
48 # dir = /some/directory
49 # [IgnoreAll]
50 # file = /some/directory
51 #
52 # You can use shell-style globbing patterns, like: file = /path/foo*
53
54 ######################################################################
55
56 [Misc]
57 ##
58 ## Add or subtract tests from the policies
59 ## - if you want to change their definitions,
60 ##   you need to do that before using the policies
61 ##
62 # RedefReadOnly = (no default)
63 # RedefAttributes=(no default)
64 # RedefLogFiles=(no default)
65 # RedefGrowingLogFiles=(no default)
66 # RedefIgnoreAll=(no default)
67 # RedefIgnoreNone=(no default)
68 # RedefUser0=(no default)
69 # RedefUser1=(no default)
70
71 [Attributes]
72 ##
73 ## for these files, only changes in permissions and ownership are checked
74 ##
75 file=/etc/mtab
76 file=/etc/ssh_random_seed
77 file=/etc/asound.conf
78 file=/etc/resolv.conf
79 file=/etc/localtime
80 file=/etc/ioctl.save
81 file=/etc/passwd.backup
82 file=/etc/shadow.backup
83 file=/etc/postfix/prng_exch
84 file=/etc/adjtime
85 file=/etc/lvm/.cache
86 file=/etc/lvm/cache
87 file=/etc/lvm/cache/.cache
88 file=/etc/network/run/ifstate
89 file=/var/state/samhain/samhain_file
90 file=/etc/bind/zones/db.debian.net
91 file=/etc/exim4/bsmtp
92 <% if hostname == "geo1" || hostname == "geo2" || hostname == "geo3" -%>
93 file=/etc/bind/named.conf.acl
94 file=/etc/bind/named.conf.options
95 file=/etc/bind/named.conf.local
96 file=/etc/bind/geodns/named.conf.geo
97 file=/etc/bind/geodns/recvconf.files
98 file=/etc/bind/geodns/db.www.debian.org.SA
99 file=/etc/bind/geodns/db.www.debian.org.OC
100 file=/etc/bind/geodns/db.www.debian.org.NA
101 file=/etc/bind/geodns/db.www.debian.org.EU
102 file=/etc/bind/geodns/db.www.debian.org.AS
103 file=/etc/bind/geodns/db.www.debian.org.AN
104 file=/etc/bind/geodns/db.www.debian.org.AF
105 file=/etc/bind/geodns/db.www.debian.org
106 file=/etc/bind/geodns/db.security.debian.org.SA
107 file=/etc/bind/geodns/db.security.debian.org.OC
108 file=/etc/bind/geodns/db.security.debian.org.NA
109 file=/etc/bind/geodns/db.security.debian.org.EU
110 file=/etc/bind/geodns/db.security.debian.org.AS
111 file=/etc/bind/geodns/db.security.debian.org.AN
112 file=/etc/bind/geodns/db.security.debian.org.AF
113 file=/etc/bind/geodns/db.security.debian.org
114 file=/etc/bind/geodns/db.video.debconf.debian.org.EU
115 file=/etc/bind/geodns/db.video.debconf.debian.org.AF
116 file=/etc/bind/geodns/db.video.debconf.debian.org.OC
117 file=/etc/bind/geodns/db.video.debconf.debian.org.SA
118 file=/etc/bind/geodns/db.video.debconf.debian.org.AS
119 file=/etc/bind/geodns/db.video.debconf.debian.org.NA
120 file=/etc/bind/geodns/db.video.debconf.debian.org.AN
121 file=/etc/bind/geodns/db.video.debconf.debian.org
122 <% end -%>
123
124
125 #
126 # There are files in /etc that might change, thus changing the directory
127 # timestamps. Put it here as 'file', and in the ReadOnly section as 'dir'.
128 #
129 file=/etc
130 file=/etc/ssh
131 file=/etc/network/run
132 file=/etc/bind/zones
133 file=/etc/spamassassin/sa-update-keys
134
135 # These are the directories for the files we handle with puppet
136 file=/etc/samhain
137 file=/etc/munin
138 file=/etc/exim4
139 file=/etc/exim4/ssl
140 file=/etc/apt
141 file=/etc/apt/apt.conf.d
142 file=/etc/apt/sources.list.d
143 file=/etc/default
144 file=/etc/logrotate.d
145 file=/etc/nagios
146 file=/etc/nagios/nrpe.d
147 file=/etc/nagios/obsolete-packages-ignore.d
148 file=/etc/bind/geodns
149 <%= extradir=""
150 case fqdn 
151 when "spohr.debian.org": extradir="file=/etc/nagios3/puppetconf.d
152 file=/etc/puppet"
153 else extradir="file=/etc/puppet"
154 end
155 extradir
156 %>
157 file=/etc/cron.d
158 file=/usr/lib/nagios/plugins
159 file=/usr/sbin
160 file=/etc/monit
161 file=/etc/monit/monit.d
162 file=/etc/pam.d
163 file=/etc/syslog-ng
164 file=/etc/ssh
165
166
167 [LogFiles]
168 ##
169 ## for these files, changes in signature, timestamps, and size are ignored 
170 ##
171 file=/var/run/utmp
172 file=/etc/motd
173
174
175
176 #####################################################################
177 #
178 # This would be the proper syntax for parts that should only be
179 #    included for certain hosts.
180 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
181 #    result still has the proper syntax for the config file.
182 # You may have any number of @HOSTNAME/@end brackets.
183 # HOSTNAME should be the fully qualified 'official' name 
184 #    (e.g. 'nixon.watergate.com', not 'nixon'), no aliases. 
185 #    No IP number - except if samhain cannot determine the 
186 #    fully qualified hostname.
187 #
188 # @HOSTNAME
189 # file=/foo/bar
190 # @end
191 #
192 # These are two examples for conditional inclusion/exclusion
193 # of a machine based on the output from 'uname -srm'
194 #
195 # $Linux:2.*.7:i666
196 # file=/foo/bar3
197 # $end
198 #
199 # !$Linux:2.*.7:i686
200 # file=/foo/bar2
201 # $end
202 #
203 #####################################################################
204
205 [GrowingLogFiles]
206 ##
207 ## for these files, changes in signature, timestamps, and increase in size
208 ##                  are ignored 
209 ##
210 file=/var/log/warn
211 file=/var/log/messages
212 file=/var/log/wtmp
213 file=/var/log/faillog
214 file=/var/log/auth.log
215 file=/var/log/daemon.log
216 file=/var/log/user.log
217 file=/var/log/kern.log
218 file=/var/log/syslog
219
220
221 [IgnoreAll]
222 ##
223 ## for these files, no modifications are reported
224 ##
225 ## This file might be created or removed by the system sometimes.
226 ##
227 file=/etc/resolv.conf.pcmcia.save
228 file=/etc/nologin
229 file=/etc/postfix/debian.db
230 file=/etc/postfix/debian
231 file=/etc/ssh/ssh_known_hosts
232 file=/etc/ssh/ssh-rsa-shadow
233 file=/var/lib/misc/ssh-rsa-shadow
234 file=/etc/.da-backup.trace
235 file=/etc/postfix/debianhosts
236 file=/etc/postfix/debianhosts.db
237 file=/etc/blkid.tab
238 file=/etc/blkid.tab.old
239 file=/etc/resolv.conf.dhclient-new
240
241 # We handle these files with puppet - please to not be bothering us
242 file=/etc/timezone
243 file=/etc/motd.tail
244 file=/etc/samhain/samhainrc
245 file=/etc/munin/munin-node.conf
246 file=/etc/userdir-ldap.confc
247 file=/etc/exim4/blacklist
248 file=/etc/exim4/host_blacklist
249 file=/etc/exim4/callout_users
250 file=/etc/exim4/exim4.conf
251 file=/etc/exim4/grey_users
252 file=/etc/exim4/helo-check
253 file=/etc/exim4/locals
254 file=/etc/exim4/localusers
255 file=/etc/exim4/manualroute
256 file=/etc/exim4/rbllist
257 file=/etc/exim4/rcpthosts
258 file=/etc/exim4/rhsbllist
259 file=/etc/exim4/virtualdomains
260 file=/etc/exim4/whitelist
261 file=/etc/exim4/local-auto.conf
262 file=/etc/exim4/local-settings.conf
263 file=/etc/exim4/ssl/ca.crt
264 file=/etc/exim4/ssl/ca.crl
265 file=/etc/exim4/ssl/thishost.crt
266 file=/etc/exim4/ssl/thishost.key
267 file=/etc/ssh/ssh_config
268 file=/etc/ssh/sshd_config
269 file=/etc/ssh/userkeys/root
270 <%=
271 out=""
272 if not nodeinfo['heavy_exim'].empty?
273   out = '
274 file=/etc/exim4/surbl_whitelist.txt
275 file=/etc/exim4/exim_surbl.pl
276 file=/etc/exim4/ccTLD.txt
277 file=/etc/clamav-unofficial-sigs.conf
278 file=/etc/clamav-unofficial-sigs.dsa.conf
279 '
280 end
281 out
282 %>
283 file=/etc/apt/preferences
284 file=/etc/apt/sources.list.d/volatile.list
285 file=/etc/apt/sources.list.d/security.list
286 file=/etc/apt/sources.list.d/buildd.list
287 file=/etc/apt/sources.list.d/debian.org.list
288 file=/etc/apt/sources.list.d/debian.restricted.list
289 file=/etc/apt/sources.list.d/debian.list
290 file=/etc/apt/sources.list.d/backports.org.list
291 file=/etc/apt/apt.conf.d/local-recommends
292 file=/etc/apt/apt.conf.d/local-pdiffs
293 file=/etc/puppet/puppet.conf
294 file=/etc/default/puppet
295 file=/etc/default/postgrey
296 file=/etc/logrotate.d/exim4-paniclog
297 file=/etc/logrotate.d/exim4-base
298 file=/etc/logrotate.d/syslog-ng
299 file=/etc/syslog-ng/syslog-ng.conf
300 file=/usr/sbin/dsa-update-apt-status
301 file=/usr/sbin/dsa-update-samhain-status
302 file=/etc/nagios/nrpe.d/nrpe_dsa.cfg
303 file=/etc/nagios/nrpe.d/debianorg.cfg
304 file=/etc/nagios/obsolete-packages-ignore
305 file=/etc/nagios/obsolete-packages-ignore.d/hostspecific
306 file=/usr/lib/nagios/plugins/dsa-check-packages
307 file=/usr/lib/nagios/plugins/dsa-check-soas
308 file=/usr/lib/nagios/plugins/dsa-check-mirrorsync
309 file=/usr/lib/nagios/plugins/dsa-check-samhain
310 file=/usr/lib/nagios/plugins/dsa-check-statusfile
311 file=/usr/lib/nagios/plugins/dsa-check-dabackup-server
312 file=/usr/lib/nagios/plugins/dsa-check-config
313 file=/usr/lib/nagios/plugins/dsa-check-hpacucli
314 file=/usr/lib/nagios/plugins/dsa-check-raid-mpt
315 file=/usr/lib/nagios/plugins/dsa-check-puppet
316 file=/usr/lib/nagios/plugins/dsa-check-running-kernel
317 file=/usr/lib/nagios/plugins/dsa-check-raid-3ware
318 file=/usr/lib/nagios/plugins/dsa-check-dabackup
319 file=/usr/lib/nagios/plugins/dsa-check-raid-dac960
320 file=/usr/lib/nagios/plugins/dsa-check-udldap-freshness
321 file=/usr/lib/nagios/plugins/dsa-check-raid-areca
322 file=/usr/lib/nagios/plugins/dsa-check-raid-sw
323 file=/usr/lib/nagios/plugins/dsa-update-samhain-status
324 file=/etc/sudoers
325 file=/etc/pam.d/sudo
326 file=/etc/monit/monitrc
327 file=/etc/monit/monit.d/01puppet
328 file=/etc/monit/monit.d/00debian.org
329 file=/etc/cron.d/dsa-puppet-stuff
330 <%= extrafiles=""
331 case fqdn 
332 when "spohr.debian.org": extrafiles="file=/etc/nagios3/puppetconf.d/auto-hostgroups.cfg
333 file=/etc/nagios3/puppetconf.d/auto-hosts.cfg
334 file=/etc/nagios3/puppetconf.d/auto-services.cfg
335 file=/etc/nagios3/puppetconf.d/auto-dependencies.cfg
336 file=/etc/nagios3/puppetconf.d/auto-hostextinfo.cfg
337 file=/etc/nagios3/puppetconf.d/auto-serviceextinfo.cfg"
338 when "handel.debian.org": extrafiles="dir=8/etc/puppet"
339 when "dijkstra.debian.org": extrafiles="dir=4/etc/dsa-kvm"
340 end
341 extrafiles
342 %>
343
344 [IgnoreNone]
345 ##
346 ## for these files, all modifications (even access time) are reported
347 ##    - you may create some interesting-looking file (like /etc/safe_passwd),
348 ##      just to watch whether someone will access it ...
349 ##
350
351 [Prelink]
352 ##
353 ## Use for prelinked files or directories holding them
354 ##
355
356
357 [ReadOnly]
358 ##
359 ## for these files, only access time is ignored
360 ##
361 dir=/usr/bin
362 dir=/bin
363 dir=/boot
364 #
365 # SuSE (old) has the boot init scripts in /sbin/init.d/*, 
366 # so we go 3 levels deep
367 #
368 dir=3/sbin
369 dir=/usr/sbin
370 dir=/lib
371 dir=3/usr/lib
372 #
373 # RedHat and Debian have the bootinit scripts in /etc/init.d/* or /etc/rc.d/*, 
374 #        so we go 3 levels deep there too
375 #
376 dir=3/etc
377
378 # Various directories / files that may include / be SUID/SGID binaries
379 #
380 #
381 file=/usr/lib/pt_chown
382 # X11, in Debian X7 this is now a symlink
383 #dir=/usr/X11R6/bin
384 #dir=/usr/X11R6/lib/X11/xmcd/bin
385 # Apache:
386 #file=/usr/lib/apache/suexec
387 #file=/usr/lib/apache/suexec.disabled
388 # Extra directories:
389 #dir=/opt/gnome/bin
390 #dir=/opt/kde/bin
391
392 [User0]
393 [User1]
394 ## User0 and User1 are sections for files/dirs with user-definable checking
395 ## (see the manual) 
396
397
398 [EventSeverity]
399 ##
400 ## Here you can assign severities to policy violations.
401 ## If this severity exceeds the treshold of a log facility (see below),
402 ## a policy violation will be logged to that facility.
403 ##
404 ## Severity for verification failures.
405 ##
406 # SeverityReadOnly=crit
407 # SeverityLogFiles=crit
408 # SeverityGrowingLogs=crit
409 # SeverityIgnoreNone=crit
410 # SeverityAttributes=crit
411 # SeverityUser0=crit
412 # SeverityUser1=crit
413
414 # Default behaviour
415 SeverityReadOnly=crit
416 SeverityLogFiles=crit
417 SeverityGrowingLogs=warn
418 SeverityIgnoreNone=crit
419 SeverityAttributes=crit
420
421
422 ##
423 ## We have a file in IgnoreAll that might or might not be present.
424 ## Setting the severity to 'info' prevents messages about deleted/new file.
425 ##
426 # SeverityIgnoreAll=crit
427 SeverityIgnoreAll=info
428
429 ## Files : file access problems
430 # SeverityFiles=crit
431
432 ## Dirs  : directory access problems
433 # SeverityDirs=crit
434
435 ## Names : suspect (non-printable) characters in a pathname
436 # SeverityNames=crit
437
438 # Default behaviour
439 SeverityFiles=crit
440 SeverityDirs=crit
441 SeverityNames=warn
442
443
444 [Log]
445 ##
446 ## Switch on/OFF log facilities and set their threshold severity
447 ##
448 ## Values: debug, info, notice, warn, mark, err, crit, alert, none.
449 ## 'mark' is used for timestamps.
450 ##
451 ##
452 ## Use 'none' to SWITCH OFF a log facility
453 ## 
454 ## By default, everything equal to and above the threshold is logged.
455 ## The specifiers '*', '!', and '=' are interpreted as  
456 ## 'all', 'all but', and 'only', respectively (like syslogd(8) does, 
457 ## at least on Linux). Examples:
458 ## MailSeverity=*
459 ## MailSeverity=!warn
460 ## MailSeverity==crit
461
462 ## E-mail
463 ##
464 # MailSeverity=none
465
466 ## Console
467 ##
468 # PrintSeverity=info
469
470 ## Logfile
471 ##
472 # LogSeverity=mark
473
474 ## Syslog
475 ##
476 # SyslogSeverity=none
477
478 ## Remote server (yule)
479 ##
480 # ExportSeverity=none
481
482 ## External script or program
483 ##
484 # ExternalSeverity = none
485
486 ## Logging to a database
487 ##
488 # DatabaseSeverity = none
489
490 # Default behaviour
491 MailSeverity=crit
492 PrintSeverity=none
493 LogSeverity=info
494 SyslogSeverity=alert
495 ExportSeverity=none
496
497
498
499
500
501 #####################################################
502 #
503 # Optional modules
504 #
505 #####################################################
506
507 # [SuidCheck]
508 ##
509 ## --- Check the filesystem for SUID/SGID binaries
510 ## 
511
512 ## Switch on
513 #
514 # SuidCheckActive = yes
515
516 ## Interval for check (seconds)
517 #
518 # SuidCheckInterval = 7200
519
520 ## Alternative: crontab-like schedule
521 #
522 # SuidCheckSchedule = NULL
523  
524 ## Directory to exclude 
525 #
526 # SuidCheckExclude = NULL
527
528 ## Limit on files per second (0 == no limit)
529 #
530 # SuidCheckFps = 0
531
532 ## Alternative: yield after every file
533 #
534 # SuidCheckYield = no
535
536 ## Severity of a detection
537 #
538 # SeveritySuidCheck = crit
539
540 ## Quarantine SUID/SGID files if found
541 #
542 # SuidCheckQuarantineFiles = yes
543
544 ## Method for Quarantining files:
545 #  0 - Delete or truncate the file.
546 #  1 - Remove SUID/SGID permissions from file.
547 #  2 - Move SUID/SGID file to quarantine dir.
548 #
549 # SuidCheckQuarantineMethod = 0
550
551 ## For method 1 and 3, really delete instead of truncating
552
553 # SuidCheckQuarantineDelete = yes
554
555 # [Kernel]
556 ##
557 ## --- Check for loadable kernel module rootkits (Linux/FreeBSD only) 
558 ##
559
560 ## Switch on/off
561 #
562 KernelCheckActive = True
563
564 ## Check interval (seconds); btw., the check is VERY fast
565 #
566 # KernelCheckInterval = 300
567
568 ## Severity
569 #
570 # SeverityKernel = crit
571
572
573 # [Utmp]
574 ##
575 ## --- Logging of login/logout events
576 ##
577
578 ## Switch on/off
579 #
580 LoginCheckActive = True
581
582 ## Severity for logins, multiple logins, logouts
583
584 # SeverityLogin=info
585 # SeverityLoginMulti=warn
586 # SeverityLogout=info
587
588 ## Interval for login/logout checks
589 #
590 # LoginCheckInterval = 300
591
592
593 # [Database]
594 ##
595 ## --- Logging to a relational database
596 ##
597
598 ## Database name
599 #
600 # SetDBName = samhain
601
602 ## Database table
603 #
604 # SetDBTable = log
605
606 ## Database user
607 #
608 # SetDBUser = samhain
609
610 ## Database password
611 #
612 # SetDBPassword = (default: none)
613
614 ## Database host
615 #
616 # SetDBHost = localhost
617
618 ## Log the server timestamp for received messages
619 #
620 # SetDBServerTstamp = True
621
622 ## Use a persistent connection
623 #
624 # UsePersistent = True
625
626 # [External]
627 ##
628 ## Interface to call external scripts/programs for logging
629 ##
630
631 ## The absolute path to the command
632 ## - Each invocation of this directive will end the definition of the
633 ##   preceding command, and start the definition of 
634 ##   an additional, new command
635 #
636 # OpenCommand = (no default)
637
638 ## Type (log or rv)
639 ## - log for log messages, srv for messages received by the server
640 #
641 # SetType = log
642
643 ## The command (full command line) to execute
644 #
645 # SetCommandLine = (no default)
646
647 ## The environment (KEY=value; repeat for more)
648 #
649 # SetEnviron = TZ=(your timezone)
650
651 ## The TIGER192 checksum (optional)
652 #
653 # SetChecksum = (no default)
654
655 ## User who runs the command
656 #
657 # SetCredentials = (default: samhain process uid)
658
659 ## Words not allowed in message
660 #
661 # SetFilterNot = (none)
662
663 ## Words required (ALL of them)
664 #
665 # SetFilterAnd = (none)
666
667 ## Words required (at least one)
668 #
669 # SetFilterOr = (none)
670
671 ## Deadtime between consecutive calls
672 #
673 # SetDeadtime = 0
674
675 ## Add default environment (HOME, PATH, SHELL)
676 #
677 # SetDefault = no
678
679
680 #####################################################
681 #
682 # Miscellaneous configuration options
683 #
684 #####################################################
685
686 [Misc]
687
688 ## whether to become a daemon process
689 ## (this is not honoured on database initialisation)
690 #
691 # Daemon = no
692 Daemon = yes
693
694 ## whether to test signature of files (init/check/none)
695 ## - if 'none', then we have to decide this on the command line -
696 #
697 # ChecksumTest = none
698 ChecksumTest=check
699
700 ## whether to drop linux capabilities that are not required
701 ## - will make a root process a 'mere mortal' in many respects
702 #
703 # UseCaps = yes
704
705 ## Set nice level (-19 to 19, see 'man nice'),
706 ## and I/O limit (kilobytes per second; 0 == off)
707 ## to reduce load on host.
708 #
709 # SetNiceLevel = 0
710 # SetIOLimit = 0
711
712 ## The version string to embed in file signature databases
713 #
714 # VersionString = NULL
715
716 ## Interval between time stamp messages
717 #
718 # SetLoopTime = 60
719 SetLoopTime = 600
720
721 ## Interval between file checks 
722 #
723 # SetFileCheckTime = 600
724 SetFileCheckTime = 7200
725
726 ## Alternative: crontab-like schedule
727 #
728 # FileCheckScheduleOne = NULL
729
730 ## Alternative: crontab-like schedule(2)
731 #
732 # FileCheckScheduleTwo = NULL
733
734 ## Report only once on modified fles 
735 ## Setting this to 'FALSE' will generate a report for any policy 
736 ## violation (old and new ones) each time the daemon checks the file system.
737 #
738 # ReportOnlyOnce = True
739
740 ## Report in full detail
741 #
742 # ReportFullDetail = False
743
744 ## Report file timestamps in local time rather than GMT
745 #
746 # UseLocalTime = No
747
748 ## The console device (can also be a file or named pipe)
749 ## - There are two console devices. Accordingly, you can use
750 ##   this directive a second time to set the second console device.
751 ##   If you have not defined the second device at compile time,
752 ##   and you don't want to use it, then:
753 ##   setting it to /dev/null is less effective than just leaving
754 ##   it alone (setting to /dev/null will waste time by opening
755 ##   /dev/null and writing to it)
756 #
757 # SetConsole = /dev/console
758
759 ## Activate the SysV IPC message queue
760 #
761 # MessageQueueActive = False
762
763
764 ## If false, skip reverse lookup when connecting to a host known 
765 ## by name rather than IP address (i.e. trust the DNS)
766 #
767 # SetReverseLookup = True
768
769 ## --- E-Mail ---
770
771 # Only highest-level (alert) reports will be mailed immediately,
772 # others will be queued. Here you can define, when the queue will
773 # be flushed (Note: the queue is automatically flushed after
774 # completing a file check).
775 #
776 SetMailTime = 86400
777
778 ## Maximum number of mails to queue
779 #
780 SetMailNum = 10
781
782 ## Recipient (max. 8)
783 #
784 SetMailAddress=samhain-reports@debian.org
785
786 ## Mail relay (IP address)
787 <%=
788 out=""
789 if not nodeinfo['smarthost'].empty?
790   out = '
791 SetMailRelay = localhost
792 '
793 else
794 out = '
795 SetMailRelay = master.debian.org
796 '
797 end
798 out
799 %>
800 ## Custom subject format
801 #
802 MailSubject = [Samhain at %H] %T: %S
803
804 ## --- end E-Mail ---
805
806 ## Path to the prelink executable
807 #
808 # SetPrelinkPath = /usr/sbin/prelink
809
810 ## TIGER192 checksum of the prelink executable
811 #
812 # SetPrelinkChecksum = (no default)
813
814
815 ## Path to the executable. If set, will be checksummed after startup
816 ## and before exit.
817 #
818 # SamhainPath = (no default)
819
820
821 ## The IP address of the log server
822 #
823 # SetLogServer = (default: compiled-in)
824
825 ## The IP address of the time server
826 #
827 # SetTimeServer = (default: compiled-in)
828
829 ## Trusted Users (comma delimited list of user names) 
830 #
831 # TrustedUser = (no default; this adds to the compiled-in list)
832
833 ## Path to the file signature database
834 #
835 # SetDatabasePath = (default: compiled-in)
836
837 ## Path to the log file
838 #
839 # SetLogfilePath = (default: compiled-in)
840
841 ## Path to the PID file
842 #
843 # SetLockPath = (default: compiled-in)
844
845
846 ## The digest/checksum/hash algorithm
847 #
848 # DigestAlgo = TIGER192
849
850
851 ## Custom format for message header. 
852 ## CAREFUL if you use XML logfile format.
853 ##
854 ## %S severity
855 ## %T timestamp
856 ## %C class
857 ##
858 ## %F source file
859 ## %L source line
860 #
861 # MessageHeader="%S %T "
862
863
864 ## Don't log path to config/database file on startup
865 #
866 # HideSetup = False
867
868 ## The syslog facility, if you log to syslog
869 #
870 # SyslogFacility = LOG_AUTHPRIV
871 SyslogFacility=LOG_LOCAL2
872
873 ## The message authentication method
874 ## - If you change this, you *must* change it
875 ##   on client *and* server
876 #
877 # MACType = HMAC-TIGER
878
879
880 ## everything below is ignored
881 [EOF]
882
883 #####################################################################
884 # This would be the proper syntax for parts that should only be
885 #    included for certain hosts.
886 # You may enclose anything in a @HOSTNAME/@end bracket, as long as the
887 #    result still has the proper syntax for the config file.
888 # You may have any number of @HOSTNAME/@end brackets.
889 # HOSTNAME should be the fully qualified 'official' name 
890 #    (e.g. 'nixon.watergate.com', not 'nixon'), no aliases. 
891 #    No IP number - except if samhain cannot determine the 
892 #    fully qualified hostname.
893 #
894 # @HOSTNAME
895 # file=/foo/bar
896 # @end
897 #
898 # These are two examples for conditional inclusion/exclusion
899 # of a machine based on the output from 'uname -srm'
900 # $Linux:2.*.7:i666
901 # file=/foo/bar3
902 # $end
903 #
904 # !$Linux:2.*.7:i686
905 # file=/foo/bar2
906 # $end
907 #
908 #####################################################################