# HG changeset patch # User Michiel Broek # Date 1354802881 -3600 # Node ID 59e07bba67ccac6dd864630b24efc0db9206bf1d # Parent cc078ac2fddde3cabfa628f096c10c3062b62cbd Fixed spelling error, updated address diff -r cc078ac2fddd -r 59e07bba67cc security.d/chk_aliases --- 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 -# 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 diff -r cc078ac2fddd -r 59e07bba67cc security.d/chk_clamav --- 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 -# 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. diff -r cc078ac2fddd -r 59e07bba67cc security.d/chk_exports --- 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 -# 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. diff -r cc078ac2fddd -r 59e07bba67cc security.d/chk_group --- 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 # 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 - - diff -r cc078ac2fddd -r 59e07bba67cc security.d/chk_homedirs --- 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 -# 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. diff -r cc078ac2fddd -r 59e07bba67cc security.d/chk_homespace --- 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 -# 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. diff -r cc078ac2fddd -r 59e07bba67cc security.d/chk_logs --- 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 -# 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. diff -r cc078ac2fddd -r 59e07bba67cc security.d/chk_mailbox --- 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 -# 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. diff -r cc078ac2fddd -r 59e07bba67cc security.d/chk_mailqueue --- 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 -# 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. diff -r cc078ac2fddd -r 59e07bba67cc security.d/chk_passwd --- 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 # 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. diff -r cc078ac2fddd -r 59e07bba67cc security.d/chk_pkgs --- 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 -# 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. diff -r cc078ac2fddd -r 59e07bba67cc security.d/chk_plussigns --- 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 -# 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. diff -r cc078ac2fddd -r 59e07bba67cc security.d/chk_rootdotfiles --- 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 -# 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. diff -r cc078ac2fddd -r 59e07bba67cc security.d/chk_sensors --- 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 # 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. diff -r cc078ac2fddd -r 59e07bba67cc security.d/chk_setid --- 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 -# 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. diff -r cc078ac2fddd -r 59e07bba67cc security.d/chk_smart --- 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 -# 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. diff -r cc078ac2fddd -r 59e07bba67cc security.d/chk_uptime --- 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 -# 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.