git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf64939
)
python:provision: Change the group of the 'binddns dir' too
author
Andreas Schneider
<asn@samba.org>
Wed, 6 Sep 2017 05:23:57 +0000
(07:23 +0200)
committer
Jeremy Allison
<jra@samba.org>
Fri, 15 Sep 2017 22:57:24 +0000
(
00:57
+0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12957
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
python/samba/provision/__init__.py
patch
|
blob
|
history
diff --git
a/python/samba/provision/__init__.py
b/python/samba/provision/__init__.py
index 8a8c033105f2613282d50d0a3f3efb383b593324..07c24795477df471e3f88f77d82596ad981e95eb 100644
(file)
--- a/
python/samba/provision/__init__.py
+++ b/
python/samba/provision/__init__.py
@@
-2238,6
+2238,14
@@
def provision(logger, session_info, smbconf=None,
# chown the dns.keytab in the bind-dns directory
if paths.bind_gid is not None:
+ try:
+ os.chmod(paths.binddns_dir, 0770)
+ os.chown(paths.binddns_dir, -1, paths.bind_gid)
+ except OSError:
+ if not os.environ.has_key('SAMBA_SELFTEST'):
+ logger.info("Failed to chown %s to bind gid %u",
+ paths.binddns_dir, paths.bind_gid)
+
try:
os.chmod(bind_dns_keytab_path, 0640)
os.chown(bind_dns_keytab_path, -1, paths.bind_gid)