From: Jiri J. <jja...@re...> - 2013-02-26 16:52:27
|
Signed-off-by: Jiri Jaburek <jja...@re...> --- audit-test/trustedprograms/tests/tp_auth_functions.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audit-test/trustedprograms/tests/tp_auth_functions.bash b/audit-test/trustedprograms/tests/tp_auth_functions.bash index 1c4939b..9f0ffee 100644 --- a/audit-test/trustedprograms/tests/tp_auth_functions.bash +++ b/audit-test/trustedprograms/tests/tp_auth_functions.bash @@ -82,8 +82,8 @@ function user_cleanup { read group gid <<<"$(generate_unique_group)" read user uid <<<"$(generate_unique_user)" +prepend_cleanup "grep -q '^$user:' /etc/passwd && { killall -9 -u '$user' ; userdel -r '$user'; }" prepend_cleanup "grep -q '^$group:' /etc/group && groupdel '$group'" -prepend_cleanup "grep -q '^$user:' /etc/passwd && userdel -r '$user'" set -x -- 1.7.11.7 |