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

Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
(cherry picked from commit e04e523a01)
This commit is contained in:
Liangbin Lian 2022-11-24 18:05:50 +08:00 committed by Tianling Shen
parent 347e16e3ed
commit a18ed04325
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
1 changed files with 1 additions and 2 deletions

View File

@ -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"