From: Andrew Bartlett Date: Thu, 1 Nov 2012 00:24:00 +0000 (+1100) Subject: file_server: put set create mask and directory mask in fileserver.conf X-Git-Tag: ldb-1.1.14~78 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc5caffbc139d63cab1ec105884863f73772586f;p=thirdparty%2Fsamba.git 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 Reviewed-by: Michael Adam --- diff --git a/file_server/file_server.c b/file_server/file_server.c index 0777de57659..b78495dd015 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));