index
:
openwrt-packages.git
Community maintained packages for OpenWrt
log msg
author
committer
range
linksys3200ac-master
master
update/libndpi-to-4.6
update/udpspeeder
about
summary
refs
log
tree
commit
diff
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
Liangbin Lian <jjm2473@gmail.com>
2022-11-24 18:05:50 +0800
committer
Tianling Shen <cnsztl@gmail.com>
2022-11-28 14:51:42 +0800
commit
e04e523a01f5144a60541e6468a9f4451f26c8ab
(
patch
)
tree
6d6aff9e00a48102ef69b001540119e1b8ac910e
parent
c711dea2f4377b0503467b63945f1506a4eaa908
(
diff
)
samba4: support both user map and valid users on same time
Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
Diffstat
-rw-r--r--
net/samba4/files/samba.init
3
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"