mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 15:07:49 +00:00
Merge pull request #2140 from MilhouseVH/le90_samba_fix_win10fall
samba: fix authentication with Win10 Fall Creators Update
This commit is contained in:
commit
b35141fca5
@ -70,10 +70,12 @@ if [ "$SAMBA_SECURE" == "true" -a ! "$SAMBA_USERNAME" == "" -a ! "$SAMBA_PASSWOR
|
|||||||
sed -e 's|^.[ \t]*.public.=.*| public = no |' \
|
sed -e 's|^.[ \t]*.public.=.*| public = no |' \
|
||||||
-e 's|^.[ \t]*.username map.=.*||' \
|
-e 's|^.[ \t]*.username map.=.*||' \
|
||||||
-e 's|^.[ \t]*.security.=.*| security = user\n username map = /run/samba/samba.map|' \
|
-e 's|^.[ \t]*.security.=.*| security = user\n username map = /run/samba/samba.map|' \
|
||||||
|
-e 's|^.[ \t]*.map.to.guest.=.*| map to guest = Never|' \
|
||||||
-i $SMB_CONF
|
-i $SMB_CONF
|
||||||
else
|
else
|
||||||
sed -e 's|^.[ \t]*.public.=.*| public = yes |' \
|
sed -e 's|^.[ \t]*.public.=.*| public = yes |' \
|
||||||
-e 's|^.[ \t]*.username map.=.*||' \
|
-e 's|^.[ \t]*.username map.=.*||' \
|
||||||
-e 's|^.[ \t]*.security.=.*| security = user|' \
|
-e 's|^.[ \t]*.security.=.*| security = user|' \
|
||||||
|
-e 's|^.[ \t]*.map.to.guest.=.*| map to guest = Bad User|' \
|
||||||
-i $SMB_CONF
|
-i $SMB_CONF
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user