From a18ed043259c4da8fee0f5e20ded020b5295d54f Mon Sep 17 00:00:00 2001 From: Liangbin Lian Date: Thu, 24 Nov 2022 18:05:50 +0800 Subject: [PATCH] samba4: support both user map and valid users on same time Signed-off-by: Liangbin Lian (cherry picked from commit e04e523a01f5144a60541e6468a9f4451f26c8ab) --- net/samba4/files/samba.init | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/samba4/files/samba.init b/net/samba4/files/samba.init index b849a1cd37..468ba553a2 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" -- 2.30.2