diff --git a/python/samba/provision/__init__.py b/python/samba/provision/__init__.py index d8f353f54ae..4920735b247 100644 --- a/python/samba/provision/__init__.py +++ b/python/samba/provision/__init__.py @@ -2025,7 +2025,7 @@ def provision(logger, session_info, smbconf=None, if not os.path.exists(paths.private_dir): os.mkdir(paths.private_dir) if not os.path.exists(os.path.join(paths.private_dir, "tls")): - os.mkdir(os.path.join(paths.private_dir, "tls")) + os.makedirs(os.path.join(paths.private_dir, "tls"), 0700) if not os.path.exists(paths.state_dir): os.mkdir(paths.state_dir)