#!/bin/sh

#################################################################################
#
#   Lynis
# ------------------
#
# Copyright 2007-2008, Michael Boelen (michael@rootkit.nl), The Netherlands
# Web site: http://www.rootkit.nl
#
# Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
# welcome to redistribute it under the terms of the GNU General Public License.
# See LICENSE file for usage of this software.
#
#################################################################################
#
    InsertSection "Accounting"
#
#################################################################################
#

    if [ "${OS}" = "FreeBSD" ]; then
        counttests
        logtext "Test: Check accounting information"
        if [ -f /var/account/acct ]; then
	    Display --indent 2 --text "- [FreeBSD] Checking accounting information... " --result OK --color GREEN
            logtext "Result: /var/account/acct available"
          else
	    Display --indent 2 --text "- [FreeBSD] Checking accounting information... " --result "NOT FOUND" --color YELLOW
            logtext "Result: No accounting information available (/var/account/acct does not exist)"
            logtext "Remark: Possibly there is another location where the accounting data is stored"
        fi
        logtextbreak
    fi

wait_for_keypress

#
#================================================================================
# Lynis - Copyright 2007-2008, Michael Boelen - www.rootkit.nl - The Netherlands
