less noide
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 23 Jun 2015 13:01:30 +0000 (15:01 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 23 Jun 2015 13:01:30 +0000 (15:01 +0200)
initscripts/pl_netinit

index b652674..8adf563 100755 (executable)
@@ -365,8 +365,8 @@ file="/etc/ssh/sshd_config"
 if ! [ -f "$file" ]; then
     echo "!!!!!!!!!! missing $file"
 else
-    echo '---------- egrep Pass|Auth|PAM' $file
-    egrep 'Pass|Auth|PAM' $file
+    echo '---------- egrep Pass|Auth|PAM|Root' $file
+    grep -v '^#' $file | egrep 'Pass|Auth|PAM|Root'
 fi
 
 echo "END post pl_netinit forensics"