mirror of
https://github.com/openwrt/packages.git
synced 2025-12-27 03:24:57 +04:00
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:
committed by
Tianling Shen
parent
347e16e3ed
commit
a18ed04325
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user