summaryrefslogtreecommitdiff
path: root/file_server
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-11-01 11:24:00 +1100
committerMichael Adam <obnox@samba.org>2012-11-01 09:55:42 +0100
commitfc5caffbc139d63cab1ec105884863f73772586f (patch)
treedb5b1a43399e464288b6908ff528b66b12626cbe /file_server
parentdd60dcf343bfb8286951d3109055693634574d8b (diff)
downloadsamba-fc5caffbc139d63cab1ec105884863f73772586f.tar.gz
samba-fc5caffbc139d63cab1ec105884863f73772586f.tar.bz2
samba-fc5caffbc139d63cab1ec105884863f73772586f.zip
file_server: put set create mask and directory mask in fileserver.conf
This allows any ACL to be set from the client, without restriction from the Samba side. Based on advise from Jermey at https://lists.samba.org/archive/samba-technical/2012-October/088414.html Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'file_server')
-rw-r--r--file_server/file_server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/file_server/file_server.c b/file_server/file_server.c
index 0777de5765..b78495dd01 100644
--- a/file_server/file_server.c
+++ b/file_server/file_server.c
@@ -65,6 +65,8 @@ static const char *generate_smb_conf(struct task_server *task)
fdprintf(fd, "map system = no\n");
fdprintf(fd, "map readonly = no\n");
fdprintf(fd, "store dos attributes = yes\n");
+ fdprintf(fd, "create mask = 0777\n");
+ fdprintf(fd, "directory mask = 0777\n");
fdprintf(fd, "include = %s\n", lpcfg_configfile(lp_ctx));