From 1bd715d9155428afee678fd202483e519820c6df Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 2 Sep 2006 03:42:55 +0000 Subject: r17999: No need to prevent others from reading. Use 755 instead of 700, and 644 instead of 600. Reading might help debugging. Jeremy. (This used to be commit 99f100cfecb53e00d17f7426251a3d4022db791a) --- source3/libads/kerberos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c index a077ce1fce..79196f87a7 100644 --- a/source3/libads/kerberos.c +++ b/source3/libads/kerberos.c @@ -484,7 +484,7 @@ BOOL create_local_private_krb5_conf_for_domain(const char *realm, const char *do if (!dname) { return False; } - if (mkdir(dname, 0700)==-1) { + if (mkdir(dname, 0755)==-1) { DEBUG(0,("create_local_private_krb5_conf_for_domain: " "failed to create directory %s. Error was %s\n", dname, strerror(errno) )); @@ -519,7 +519,7 @@ BOOL create_local_private_krb5_conf_for_domain(const char *realm, const char *do while (loopcount < 10) { SMB_STRUCT_STAT st; - xfp = x_fopen(fname, O_CREAT|O_WRONLY, 0600); + xfp = x_fopen(fname, O_CREAT|O_WRONLY, 0644); if (!xfp) { TALLOC_FREE(dname); return False; -- cgit