1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-18 05:13:56 +02:00

samba4: support both user map and valid users on same time

Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
This commit is contained in:
Liangbin Lian 2022-11-24 18:05:50 +08:00 committed by Tianling Shen
parent c711dea2f4
commit e04e523a01

View File

@ -115,9 +115,8 @@ smb_add_share() {
if [ "$force_root" -eq 1 ]; then if [ "$force_root" -eq 1 ]; then
printf "\tforce user = root\n" printf "\tforce user = root\n"
printf "\tforce group = root\n" printf "\tforce group = root\n"
else
[ -n "$users" ] && printf "\tvalid users = %s\n" "$users"
fi fi
[ -n "$users" ] && printf "\tvalid users = %s\n" "$users"
[ -n "$create_mask" ] && printf "\tcreate mask = %s\n" "$create_mask" [ -n "$create_mask" ] && printf "\tcreate mask = %s\n" "$create_mask"
[ -n "$dir_mask" ] && printf "\tdirectory mask = %s\n" "$dir_mask" [ -n "$dir_mask" ] && printf "\tdirectory mask = %s\n" "$dir_mask"