diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-11-01 11:24:00 +1100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-11-01 09:55:42 +0100 |
commit | fc5caffbc139d63cab1ec105884863f73772586f (patch) | |
tree | db5b1a43399e464288b6908ff528b66b12626cbe /file_server | |
parent | dd60dcf343bfb8286951d3109055693634574d8b (diff) | |
download | samba-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.c | 2 |
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)); |