diff --git a/samba.sh b/samba.sh index d8fae41..4eb00da 100755 --- a/samba.sh +++ b/samba.sh @@ -128,7 +128,7 @@ share() { local share="$1" path="$2" browsable="${3:-yes}" ro="${4:-yes}" \ # none) # Return: result smb() { local file=/etc/samba/smb.conf - sed -i '/min protocol/d' $file + sed -i 's/\([^#]*min protocol *=\).*/\1 LANMAN1/' $file } ### user: add a user