Fixed spelling error, updated address

Thu, 06 Dec 2012 15:08:01 +0100

author
Michiel Broek <mbse@mbse.eu>
date
Thu, 06 Dec 2012 15:08:01 +0100
changeset 14
59e07bba67cc
parent 13
cc078ac2fddd
child 15
c4a1470ab59d

Fixed spelling error, updated address

security.d/chk_aliases file | annotate | diff | comparison | revisions
security.d/chk_clamav file | annotate | diff | comparison | revisions
security.d/chk_exports file | annotate | diff | comparison | revisions
security.d/chk_group file | annotate | diff | comparison | revisions
security.d/chk_homedirs file | annotate | diff | comparison | revisions
security.d/chk_homespace file | annotate | diff | comparison | revisions
security.d/chk_logs file | annotate | diff | comparison | revisions
security.d/chk_mailbox file | annotate | diff | comparison | revisions
security.d/chk_mailqueue file | annotate | diff | comparison | revisions
security.d/chk_passwd file | annotate | diff | comparison | revisions
security.d/chk_pkgs file | annotate | diff | comparison | revisions
security.d/chk_plussigns file | annotate | diff | comparison | revisions
security.d/chk_rootdotfiles file | annotate | diff | comparison | revisions
security.d/chk_sensors file | annotate | diff | comparison | revisions
security.d/chk_setid file | annotate | diff | comparison | revisions
security.d/chk_smart file | annotate | diff | comparison | revisions
security.d/chk_uptime file | annotate | diff | comparison | revisions
--- a/security.d/chk_aliases	Tue Sep 22 20:26:20 2009 +0200
+++ b/security.d/chk_aliases	Thu Dec 06 15:08:01 2012 +0100
@@ -1,23 +1,19 @@
 #!/bin/bash
 #
-# $Id$
-#
 #############################################################################
-# Copyright (C) 2005
+# Copyright (C) 2005-2012
 #   
 # Michiel Broek               <mbse@mbse.dds.nl>
-# Beekmansbos 10
-# 1971 BV IJmuiden
 # the Netherlands
 #
-# This file is part of SlackSecCheckSripts.
+# This file is part of SlackSecCheckScripts.
 #
 # This package is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by the
 # Free Software Foundation; either version 2, or (at your option) any
 # later version.
 #
-# SlackSecCheckSripts is distributed in the hope that it will be useful, but
+# SlackSecCheckScripts is distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 # General Public License for more details.
@@ -47,7 +43,7 @@
 
 # Uudecode should not be in the /etc/mail/aliases file.
 #
-for f in /etc/mail/aliases /etc/aliases /etc/postfix/aliases; do
+for f in /etc/mail/aliases /etc/aliases /etc/postfix*/aliases; do
     if [ -f $f ]; then
 	egrep '^[^#]*(uudecode)' $f >> $OUTPUT
     fi
--- a/security.d/chk_clamav	Tue Sep 22 20:26:20 2009 +0200
+++ b/security.d/chk_clamav	Thu Dec 06 15:08:01 2012 +0100
@@ -1,23 +1,19 @@
 #!/bin/bash
 #
-# $Id$
-#
 #############################################################################
-# Copyright (C) 2005-2007
+# Copyright (C) 2005-2012
 #   
 # Michiel Broek               <mbse@mbse.eu>
-# Beekmansbos 10
-# 1971 BV IJmuiden
 # the Netherlands
 #
-# This file is part of SlackSecCheckSripts.
+# This file is part of SlackSecCheckScripts.
 #
 # This package is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by the
 # Free Software Foundation; either version 2, or (at your option) any
 # later version.
 #
-# SlackSecCheckSripts is distributed in the hope that it will be useful, but
+# SlackSecCheckScripts is distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 # General Public License for more details.
--- a/security.d/chk_exports	Tue Sep 22 20:26:20 2009 +0200
+++ b/security.d/chk_exports	Thu Dec 06 15:08:01 2012 +0100
@@ -1,23 +1,19 @@
 #!/bin/bash
 #
-# $Id$
-#
 #############################################################################
-# Copyright (C) 2005
+# Copyright (C) 2005-2012
 #   
 # Michiel Broek               <mbse@mbse.dds.nl>
-# Beekmansbos 10
-# 1971 BV IJmuiden
 # the Netherlands
 #
-# This file is part of SlackSecCheckSripts.
+# This file is part of SlackSecCheckScripts.
 #
 # This package is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by the
 # Free Software Foundation; either version 2, or (at your option) any
 # later version.
 #
-# SlackSecCheckSripts is distributed in the hope that it will be useful, but
+# SlackSecCheckScripts is distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 # General Public License for more details.
--- a/security.d/chk_group	Tue Sep 22 20:26:20 2009 +0200
+++ b/security.d/chk_group	Thu Dec 06 15:08:01 2012 +0100
@@ -1,23 +1,21 @@
 #!/bin/bash
 #
-# $Id$
-#
 #############################################################################
-# Copyright (C) 2005
+# Copyright (C) 2005-2012
 #   
 # Michiel Broek               <mbse@mbse.dds.nl>
 # Beekmansbos 10
 # 1971 BV IJmuiden
 # the Netherlands
 #
-# This file is part of SlackSecCheckSripts.
+# This file is part of SlackSecCheckScripts.
 #
 # This package is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by the
 # Free Software Foundation; either version 2, or (at your option) any
 # later version.
 #
-# SlackSecCheckSripts is distributed in the hope that it will be useful, but
+# SlackSecCheckScripts is distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 # General Public License for more details.
@@ -48,34 +46,9 @@
 
 # Check group file
 #
-GRP=/etc/group
-awk -F: -v "len=$max_grouplen" '{
-    if ($0 ~ /^[     ]*$/) {
-	printf "\tLine %d is a blank line.\n", NR;
-	next;
-    }
-    if (NF != 4 && ($1 != "+" || NF != 1))
-	printf "\tLine %d has the wrong number of fields.\n", NR;
-    if ($1 == "+" )  {
-	next;
-    }
-    if ($1 !~ /^[A-Za-z0-9]([-A-Za-z0-9]*[A-Za-z0-9])*$/)
-	printf "\tGroup %s has non-alphanumeric characters.\n",
-	$1;
-    if (length($1) > len)
-	printf "\tGroup %s has more than "len" characters.\n", $1;
-    if ($3 !~ /[0-9]*/)
-	printf "\tLogin %s has a negative group id.\n", $1;
-}' < $GRP > $OUTPUT
+grpck -r > $OUTPUT
 if [ -s $OUTPUT ] ; then
     printf "\nChecking the $GRP file:\n"
     cat $OUTPUT
 fi
 
-awk -F: '{ print $1 }' $GRP | sort | uniq -d > $OUTPUT
-if [ -s $OUTPUT ] ; then
-    printf "\n\t$GRP has duplicate group names.\n"
-    column $OUTPUT
-fi
-
-
--- a/security.d/chk_homedirs	Tue Sep 22 20:26:20 2009 +0200
+++ b/security.d/chk_homedirs	Thu Dec 06 15:08:01 2012 +0100
@@ -1,21 +1,19 @@
 #!/bin/bash
 #
 #############################################################################
-# Copyright (C) 2005-2009
+# Copyright (C) 2005-2012
 #   
 # Michiel Broek               <mbse@mbse.eu>
-# Beekmansbos 10
-# 1971 BV IJmuiden
 # the Netherlands
 #
-# This file is part of SlackSecCheckSripts.
+# This file is part of SlackSecCheckScripts.
 #
 # This package is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by the
 # Free Software Foundation; either version 2, or (at your option) any
 # later version.
 #
-# SlackSecCheckSripts is distributed in the hope that it will be useful, but
+# SlackSecCheckScripts is distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 # General Public License for more details.
--- a/security.d/chk_homespace	Tue Sep 22 20:26:20 2009 +0200
+++ b/security.d/chk_homespace	Thu Dec 06 15:08:01 2012 +0100
@@ -1,23 +1,19 @@
 #!/bin/bash
 #
-# $Id$
-#
 #############################################################################
-# Copyright (C) 2005
+# Copyright (C) 2005-2012
 #   
 # Michiel Broek               <mbse@mbse.dds.nl>
-# Beekmansbos 10
-# 1971 BV IJmuiden
 # the Netherlands
 #
-# This file is part of SlackSecCheckSripts.
+# This file is part of SlackSecCheckScripts.
 #
 # This package is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by the
 # Free Software Foundation; either version 2, or (at your option) any
 # later version.
 #
-# SlackSecCheckSripts is distributed in the hope that it will be useful, but
+# SlackSecCheckScripts is distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 # General Public License for more details.
--- a/security.d/chk_logs	Tue Sep 22 20:26:20 2009 +0200
+++ b/security.d/chk_logs	Thu Dec 06 15:08:01 2012 +0100
@@ -1,23 +1,19 @@
 #!/bin/bash
 #
-# $Id$
-#
 #############################################################################
-# Copyright (C) 2005
+# Copyright (C) 2005-2012
 #   
 # Michiel Broek               <mbse@mbse.dds.nl>
-# Beekmansbos 10
-# 1971 BV IJmuiden
 # the Netherlands
 #
-# This file is part of SlackSecCheckSripts.
+# This file is part of SlackSecCheckScripts.
 #
 # This package is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by the
 # Free Software Foundation; either version 2, or (at your option) any
 # later version.
 #
-# SlackSecCheckSripts is distributed in the hope that it will be useful, but
+# SlackSecCheckScripts is distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 # General Public License for more details.
--- a/security.d/chk_mailbox	Tue Sep 22 20:26:20 2009 +0200
+++ b/security.d/chk_mailbox	Thu Dec 06 15:08:01 2012 +0100
@@ -1,23 +1,19 @@
 #!/bin/bash
 #
-# $Id$
-#
 #############################################################################
-# Copyright (C) 2005-2007
+# Copyright (C) 2005-2012
 #   
 # Michiel Broek               <mbse@mbse.eu>
-# Beekmansbos 10
-# 1971 BV IJmuiden
 # the Netherlands
 #
-# This file is part of SlackSecCheckSripts.
+# This file is part of SlackSecCheckScripts.
 #
 # This package is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by the
 # Free Software Foundation; either version 2, or (at your option) any
 # later version.
 #
-# SlackSecCheckSripts is distributed in the hope that it will be useful, but
+# SlackSecCheckScripts is distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 # General Public License for more details.
--- a/security.d/chk_mailqueue	Tue Sep 22 20:26:20 2009 +0200
+++ b/security.d/chk_mailqueue	Thu Dec 06 15:08:01 2012 +0100
@@ -1,23 +1,19 @@
 #!/bin/bash
 #
-# $Id$
-#
 #############################################################################
-# Copyright (C) 2005
+# Copyright (C) 2005-2012
 #   
 # Michiel Broek               <mbse@mbse.dds.nl>
-# Beekmansbos 10
-# 1971 BV IJmuiden
 # the Netherlands
 #
-# This file is part of SlackSecCheckSripts.
+# This file is part of SlackSecCheckScripts.
 #
 # This package is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by the
 # Free Software Foundation; either version 2, or (at your option) any
 # later version.
 #
-# SlackSecCheckSripts is distributed in the hope that it will be useful, but
+# SlackSecCheckScripts is distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 # General Public License for more details.
--- a/security.d/chk_passwd	Tue Sep 22 20:26:20 2009 +0200
+++ b/security.d/chk_passwd	Thu Dec 06 15:08:01 2012 +0100
@@ -1,21 +1,21 @@
 #!/bin/bash
 #
 #############################################################################
-# Copyright (C) 2005-2009
+# Copyright (C) 2005-2012
 #   
 # Michiel Broek               <mbse@mbse.eu>
 # Beekmansbos 10
 # 1971 BV IJmuiden
 # the Netherlands
 #
-# This file is part of SlackSecCheckSripts.
+# This file is part of SlackSecCheckScripts.
 #
 # This package is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by the
 # Free Software Foundation; either version 2, or (at your option) any
 # later version.
 #
-# SlackSecCheckSripts is distributed in the hope that it will be useful, but
+# SlackSecCheckScripts is distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 # General Public License for more details.
--- a/security.d/chk_pkgs	Tue Sep 22 20:26:20 2009 +0200
+++ b/security.d/chk_pkgs	Thu Dec 06 15:08:01 2012 +0100
@@ -1,23 +1,19 @@
 #!/bin/bash
 #
-# $Id$
-#
 #############################################################################
-# Copyright (C) 2005-2007
+# Copyright (C) 2005-2012
 #   
 # Michiel Broek               <mbse@mbse.eu>
-# Beekmansbos 10
-# 1971 BV IJmuiden
 # the Netherlands
 #
-# This file is part of SlackSecCheckSripts.
+# This file is part of SlackSecCheckScripts.
 #
 # This package is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by the
 # Free Software Foundation; either version 2, or (at your option) any
 # later version.
 #
-# SlackSecCheckSripts is distributed in the hope that it will be useful, but
+# SlackSecCheckScripts is distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 # General Public License for more details.
--- a/security.d/chk_plussigns	Tue Sep 22 20:26:20 2009 +0200
+++ b/security.d/chk_plussigns	Thu Dec 06 15:08:01 2012 +0100
@@ -1,23 +1,19 @@
 #!/bin/bash
 #
-# $Id$
-#
 #############################################################################
-# Copyright (C) 2005
+# Copyright (C) 2005-2012
 #   
 # Michiel Broek               <mbse@mbse.dds.nl>
-# Beekmansbos 10
-# 1971 BV IJmuiden
 # the Netherlands
 #
-# This file is part of SlackSecCheckSripts.
+# This file is part of SlackSecCheckScripts.
 #
 # This package is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by the
 # Free Software Foundation; either version 2, or (at your option) any
 # later version.
 #
-# SlackSecCheckSripts is distributed in the hope that it will be useful, but
+# SlackSecCheckScripts is distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 # General Public License for more details.
--- a/security.d/chk_rootdotfiles	Tue Sep 22 20:26:20 2009 +0200
+++ b/security.d/chk_rootdotfiles	Thu Dec 06 15:08:01 2012 +0100
@@ -1,23 +1,19 @@
 #!/bin/bash
 #
-# $Id$
-#
 #############################################################################
-# Copyright (C) 2005
+# Copyright (C) 2005-2012
 #   
 # Michiel Broek               <mbse@mbse.dds.nl>
-# Beekmansbos 10
-# 1971 BV IJmuiden
 # the Netherlands
 #
-# This file is part of SlackSecCheckSripts.
+# This file is part of SlackSecCheckScripts.
 #
 # This package is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by the
 # Free Software Foundation; either version 2, or (at your option) any
 # later version.
 #
-# SlackSecCheckSripts is distributed in the hope that it will be useful, but
+# SlackSecCheckScripts is distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 # General Public License for more details.
--- a/security.d/chk_sensors	Tue Sep 22 20:26:20 2009 +0200
+++ b/security.d/chk_sensors	Thu Dec 06 15:08:01 2012 +0100
@@ -1,23 +1,21 @@
 #!/bin/bash
 #
-# $Id$
-#
 #############################################################################
-# Copyright (C) 2005-2007
+# Copyright (C) 2005-2012
 #   
 # Michiel Broek               <mbse@mbse.eu>
 # Beekmansbos 10
 # 1971 BV IJmuiden
 # the Netherlands
 #
-# This file is part of SlackSecCheckSripts.
+# This file is part of SlackSecCheckScripts.
 #
 # This package is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by the
 # Free Software Foundation; either version 2, or (at your option) any
 # later version.
 #
-# SlackSecCheckSripts is distributed in the hope that it will be useful, but
+# SlackSecCheckScripts is distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 # General Public License for more details.
--- a/security.d/chk_setid	Tue Sep 22 20:26:20 2009 +0200
+++ b/security.d/chk_setid	Thu Dec 06 15:08:01 2012 +0100
@@ -1,21 +1,19 @@
 #!/bin/bash
 #
 #############################################################################
-# Copyright (C) 2005-2009
+# Copyright (C) 2005-2012
 #   
 # Michiel Broek               <mbse@mbse.eu>
-# Beekmansbos 10
-# 1971 BV IJmuiden
 # the Netherlands
 #
-# This file is part of SlackSecCheckSripts.
+# This file is part of SlackSecCheckScripts.
 #
 # This package is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by the
 # Free Software Foundation; either version 2, or (at your option) any
 # later version.
 #
-# SlackSecCheckSripts is distributed in the hope that it will be useful, but
+# SlackSecCheckScripts is distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 # General Public License for more details.
--- a/security.d/chk_smart	Tue Sep 22 20:26:20 2009 +0200
+++ b/security.d/chk_smart	Thu Dec 06 15:08:01 2012 +0100
@@ -1,21 +1,19 @@
 #!/bin/bash
 #
 #############################################################################
-# Copyright (C) 2005-2009
+# Copyright (C) 2005-2012
 #   
 # Michiel Broek               <mbse@mbse.dds.nl>
-# Beekmansbos 10
-# 1971 BV IJmuiden
 # the Netherlands
 #
-# This file is part of SlackSecCheckSripts.
+# This file is part of SlackSecCheckScripts.
 #
 # This package is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by the
 # Free Software Foundation; either version 2, or (at your option) any
 # later version.
 #
-# SlackSecCheckSripts is distributed in the hope that it will be useful, but
+# SlackSecCheckScripts is distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 # General Public License for more details.
--- a/security.d/chk_uptime	Tue Sep 22 20:26:20 2009 +0200
+++ b/security.d/chk_uptime	Thu Dec 06 15:08:01 2012 +0100
@@ -1,23 +1,19 @@
 #!/bin/bash
 #
-# $Id$
-#
 #############################################################################
-# Copyright (C) 2005
+# Copyright (C) 2005-2012
 #   
 # Michiel Broek               <mbse@mbse.dds.nl>
-# Beekmansbos 10
-# 1971 BV IJmuiden
 # the Netherlands
 #
-# This file is part of SlackSecCheckSripts.
+# This file is part of SlackSecCheckScripts.
 #
 # This package is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by the
 # Free Software Foundation; either version 2, or (at your option) any
 # later version.
 #
-# SlackSecCheckSripts is distributed in the hope that it will be useful, but
+# SlackSecCheckScripts is distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 # General Public License for more details.

mercurial