Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: some simplification of command-line operations, explanation of audit script modifications

...

NOTE - This guide is for a new install of Open-AudIT. If you wish to upgrade an existing installation, see the upgrade Linux - Upgrading guide.

You should be able to determine the IP Address of your Open-AudIT server via the following command:

...

Fix the file ownership and permissions.
Code Block
languagebash
cd /usr/local
chown -R root:root omk
 
chmod -R 700 /usr/local/omk

chmod -R 755 /usr/local/omk/log  
 
chmod -R 770 /usr/local/open-audit
 
chmod -R 777 /usr/local/open-audit/code_igniter/application/views/lang/

chmod 770 /usr/local/open-audit/other/audit_linux*.sh
 
chmod 770660 /usr/local/open-audit/other/audit_subnet.sh
 
chmod 660 /usr/local/open-audit/otheropen-audit/other/open-audit.log  
Change permissions

...

Copy the config files.
Code Block
languagebash
cpcd /usr/local/omk/install/
cp users.dat /usr/local/omk/conf/
 
cp /usr/local/omk/install/oae_reports.json /usr/local/omk/conf/
 
cp /usr/local/omk/install/opCommon.nmis /usr/local/omk/conf/

cp /usr/local/omk/install/opModules.nmis /usr/local/omk/conf/ oae_reports.json opCommon.nmis opModules.nmis ../conf

Edit the config files.

Make sure you set both both oae_server and oae_link. They will likely be the same address.

Set Set omkd_require_nmis to 'false' if you do not have NMIS installed on this server.

Code Block
languagebash
nano /usr/local/omk/conf/opCommon.nmis

...

Section
Column
width40%

for Debian / Ubuntu

Code Block
languagebash
cp -r /usr/local/open-audit/www/* /var/www/

chown -R root:www-data /var/www

chmod -R 755 /var/www 
Column
width40%

for RedHat / CentOS

Code Block
languagebash
cp -r /usr/local/open-audit/www/* /var/www/html/

chown -R root:apache /var/www/html

chmod -R 755 /var/www/html 

Note - if you are installing into a web root subdirectory, you will need to copy the files into a subdirectory. The below example is from the Opmantek virtual appliance.

Code Block
languagebash
\cp -Rf /usr/local/open-audit/www/* /var/www/html/open-audit/

Ensure index.php is pointed at contains the correct locationlocations for finding the OpenAudit files.

Edit /var/www/index.php (for Debian/Ubuntu) or /var/www/html/index.php (for RedHat/CentOS) and check the lines that specify the $system_path and $application_folder. There are two lines for each variable. Ensure the windows paths are commented out by placing a # at the start of the line. The linux paths should correspond to /usr/local/open-audit/code_igniter/ (system or application).

...

If you have installed Open-AudIT into a sub directory on your webserver, you must alter the audit scripts to submit to the correct URL, which means the URL needs to include this sub directory as well.. The files that need to be modified are all in in /usr/local/open-audit/other and are named named

  • audit_subnet.sh
  • audit_linux.sh
  • audit_osx.sh
  • audit_subnet.vbs
  • audit_windows.vbs

You should reset the variable "url" (sans quotes) to include this subdirectory.

For example, on the Opmantek VM reset you need to change the URL in the audit_subnet.sh script from

Code Block
url="http://localhost/index.php/system/add_nmap"

to

Code Block
url="http://localhost/open-audit/index.php/system/add_nmap"