samba4: support both user map and valid users on same time
Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
This commit is contained in:
parent
c711dea2f4
commit
e04e523a01
1 changed files with 1 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue