From 4f5791ebd03eaec1c7da0865a383175b05102712 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 5 May 2024 19:47:29 +0200 Subject: Adding upstream version 2:4.17.12+dfsg. Signed-off-by: Daniel Baumann --- source4/setup/tests/provision_fileperms.sh | 70 ++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100755 source4/setup/tests/provision_fileperms.sh (limited to 'source4/setup/tests/provision_fileperms.sh') diff --git a/source4/setup/tests/provision_fileperms.sh b/source4/setup/tests/provision_fileperms.sh new file mode 100755 index 0000000..c69b73f --- /dev/null +++ b/source4/setup/tests/provision_fileperms.sh @@ -0,0 +1,70 @@ +#!/bin/sh + +if [ $# -lt 1 ]; then + cat <$SMB_CONF + +# provision a basic DC +testit "basic-provision" $PYTHON $BINDIR/samba-tool domain provision --server-role="dc" --domain=FOO --realm=foo.example.com --targetdir=$TARGET_DIR --configfile=$SMB_CONF + +# check the file permissions in the 'private' directory really are private +testit "provision-fileperms" check_private_file_perms $TARGET_DIR + +rm -rf $TARGET_DIR + +umask $ORIG_UMASK + +exit $failed -- cgit v1.2.3