From 363f76c30504ca18cbce56f5b2ed5bcb2ce41412 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 29 Jul 2013 13:50:06 +0200 Subject: [PATCH] testprogs: Fix tests calling smbpasswd. smbpasswd has a check that it is root so make sure we start with uid_wrapper being root! Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- testprogs/blackbox/test_passwords.sh | 3 +++ testprogs/blackbox/test_pdbtest.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/testprogs/blackbox/test_passwords.sh b/testprogs/blackbox/test_passwords.sh index bc3447b1b5a..ab546a63084 100755 --- a/testprogs/blackbox/test_passwords.sh +++ b/testprogs/blackbox/test_passwords.sh @@ -46,6 +46,9 @@ test_smbclient() { return $status } +UID_WRAPPER_ROOT=1 +export UID_WRAPPER_ROOT + CONFIG="--configfile=$PREFIX/dc/etc/smb.conf" export CONFIG diff --git a/testprogs/blackbox/test_pdbtest.sh b/testprogs/blackbox/test_pdbtest.sh index 1e33a0b9fd8..af822f9cc70 100755 --- a/testprogs/blackbox/test_pdbtest.sh +++ b/testprogs/blackbox/test_pdbtest.sh @@ -42,6 +42,9 @@ test_smbclient() { return $status } +UID_WRAPPER_ROOT=1 +export UID_WRAPPER_ROOT + testit "pdbtest" $BINDIR/pdbtest -u pdbtest || failed=`expr $failed + 1` NEWUSERPASS=testPaSS@01%