Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2014-10-02 17:15:19 +0400
committermboelen <michael@cisofy.com>2014-10-02 17:15:19 +0400
commit231582ac534f4608fbf3cd5056adcd65be547bb9 (patch)
treea4f59a6d192e27f9504f7f416ae7e8b645412272 /extras/check-lynis.sh
parent52fe3b68ba8ca369ac9fc121c5f8746fa3983304 (diff)
Added systemd service script and timer (as replacement for cronjob)
Diffstat (limited to 'extras/check-lynis.sh')
-rwxr-xr-xextras/check-lynis.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/extras/check-lynis.sh b/extras/check-lynis.sh
new file mode 100755
index 00000000..855f3577
--- /dev/null
+++ b/extras/check-lynis.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+# Check for double ID numbers
+grep -r Register .. | awk '{ if($2=="Register") { print $4 } }' | sort | uniq -c | awk '{ if ($1!=1) { print $2 } }'