aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiangbin Lian <jjm2473@gmail.com>2022-11-24 18:05:50 +0800
committerTianling Shen <cnsztl@gmail.com>2022-11-28 14:51:42 +0800
commite04e523a01f5144a60541e6468a9f4451f26c8ab (patch)
tree6d6aff9e00a48102ef69b001540119e1b8ac910e
parentc711dea2f4377b0503467b63945f1506a4eaa908 (diff)
samba4: support both user map and valid users on same time
Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
1 files changed, 1 insertions, 2 deletions
diff --git a/net/samba4/files/samba.init b/net/samba4/files/samba.init
index b849a1cd3..468ba553a 100644
--- a/net/samba4/files/samba.init
+++ b/net/samba4/files/samba.init
@@ -115,9 +115,8 @@ smb_add_share() {
if [ "$force_root" -eq 1 ]; then
printf "\tforce user = root\n"
printf "\tforce group = root\n"
- else
- [ -n "$users" ] && printf "\tvalid users = %s\n" "$users"
fi
+ [ -n "$users" ] && printf "\tvalid users = %s\n" "$users"
[ -n "$create_mask" ] && printf "\tcreate mask = %s\n" "$create_mask"
[ -n "$dir_mask" ] && printf "\tdirectory mask = %s\n" "$dir_mask"