When /var/log/auth.log is checked, flush file system buffers.

And add debug information (content of /var/log/auth.log).
This commit is contained in:
nekral-guest
2010-08-28 19:51:48 +00:00
parent 090dcd4714
commit ac62509912
4 changed files with 24 additions and 3 deletions
@@ -20,6 +20,13 @@ change_config
echo
echo -n "Syncing disks..."
sync
echo "OK"
echo "auth.log contains:"
echo "======================================================================="
cat /var/log/auth.log
echo "======================================================================="
echo -n "Looking for 'FAILED su for myuser by testsuite' in /var/log/auth.log..."
grep -q "FAILED su for myuser by testsuite" /var/log/auth.log
echo "OK"
+3 -3
View File
@@ -20,13 +20,13 @@ change_config
echo
echo -n "Syncing disks..."
sync
echo "OK"
echo "auth.log contains:"
echo "======================================================================="
cat /var/log/auth.log
echo "======================================================================="
echo "Syncing disks..."
sync
echo "OK"
echo -n "Looking for 'FAILED su for myuser by testsuite' in /var/log/auth.log..."
grep -q "FAILED su for myuser by testsuite" /var/log/auth.log
echo "OK"
+7
View File
@@ -19,6 +19,13 @@ change_config
./run_su.exp myuser myuserF00barbaz '$ '
echo
echo -n "Syncing disks..."
sync
echo "OK"
echo "auth.log contains:"
echo "======================================================================="
cat /var/log/auth.log
echo "======================================================================="
echo -n "Looking for 'Successful su for myuser by testsuite' in /var/log/auth.log..."
grep -q "Successful su for myuser by testsuite" /var/log/auth.log
echo "OK"
+7
View File
@@ -24,6 +24,13 @@ change_config
./run_su.exp myuser myuserF00barbaz '$ '
echo
echo -n "Syncing disks..."
sync
echo "OK"
echo "auth.log contains:"
echo "======================================================================="
cat /var/log/auth.log
echo "======================================================================="
echo -n "Looking for 'Successful su for myuser by testsuite' in /var/log/auth.log..."
grep -q "Successful su for myuser by testsuite" /var/log/auth.log
echo "OK"