#!/usr/bin/perl use strict; use warnings; use CGI qw(:standard); use CGI::Carp qw(fatalsToBrowser warningsToBrowser); #print header(-type=>'text/plain'); print header( -charset => 'utf-8', -refresh => '10' ); print start_html(); my $info1 = `cat /proc/mdstat`; print "...html"; print end_html();
Category: ANY
How to monitor file access on Linux with auditd
If you are running a mission critical web server, or maintaining a storage server loaded with sensitive data, you probably want to closely monitor file access activities within the server. For example, you want to track any unauthorized change in system configuration files such as /etc/passwd.
To monitor who changed or accessed files or directories on Linux, you can use the Linux Audit System which provides system call auditing and monitoring. In the Linux Audit System, a daemon called auditd is responsible for monitoring individual system calls, and logging them for inspection.
In this tutorial, I will describe how to monitor file access on Linux by using auditd.
To install auditd on Debian, Ubuntu or Linux Mint:
“How to monitor file access on Linux with auditd”Continue reading
vim regex how to …
Contents
Substitute Command “vim regex how to …”Continue reading |
Apache: .htaccess redirect from HTTP to HTTPS.
RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.(.*) RewriteRule ^.*$ https://%1/$1 [R=301,L]
OR
“Apache: .htaccess redirect from HTTP to HTTPS.”Continue reading
Tayn baseboard: How to flash motherboard BIOS from Linux.
You’ve finally made the move to a Windows-free computer, you’re enjoying your brand new Linux OS, no trojans/viruses, no slowdown, everything’s perfect. Suddenly, you need to update the BIOS on your motherboard to support some new piece of hardware, but typically the motherboard vendor is offering only DOS based BIOS flash utilities. You panic! Fortunately, this problem is easy to solve …
Step 1: Download FreeDOS boot disk floppy image
“Tayn baseboard: How to flash motherboard BIOS from Linux.”Continue reading