mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 19:35:49 +00:00
Update samba.sh
This commit is contained in:
parent
92a0db2f3c
commit
278d111ca8
1 changed files with 9 additions and 9 deletions
18
src/samba.sh
18
src/samba.sh
|
|
@ -4,15 +4,15 @@ set -Eeuo pipefail
|
||||||
[[ "$DHCP" == [Yy1]* ]] && return 0
|
[[ "$DHCP" == [Yy1]* ]] && return 0
|
||||||
|
|
||||||
{ echo "[global]"
|
{ echo "[global]"
|
||||||
|
echo " server string = Dockur"
|
||||||
echo " netbios name = dockur"
|
echo " netbios name = dockur"
|
||||||
echo " workgroup = WORKGROUP"
|
echo " workgroup = WORKGROUP"
|
||||||
echo " server string = Dockur"
|
|
||||||
echo " interfaces = dockerbridge"
|
echo " interfaces = dockerbridge"
|
||||||
echo " bind interfaces only = yes"
|
echo " bind interfaces only = yes"
|
||||||
echo " security = user"
|
echo " security = user"
|
||||||
echo " guest account = nobody"
|
echo " guest account = nobody"
|
||||||
echo " map to guest = Bad User"
|
echo " map to guest = Bad User"
|
||||||
echo " server min protocol = SMB2"
|
echo " #server min protocol = SMB2"
|
||||||
echo ""
|
echo ""
|
||||||
echo " # disable printing services"
|
echo " # disable printing services"
|
||||||
echo " load printers = no"
|
echo " load printers = no"
|
||||||
|
|
@ -20,17 +20,17 @@ set -Eeuo pipefail
|
||||||
echo " printcap name = /dev/null"
|
echo " printcap name = /dev/null"
|
||||||
echo " disable spoolss = yes"
|
echo " disable spoolss = yes"
|
||||||
echo ""
|
echo ""
|
||||||
echo "[data]"
|
echo "[Storage]"
|
||||||
echo " path = /storage"
|
echo " path = /storage"
|
||||||
echo " comment = Storage"
|
echo " comment = Storage"
|
||||||
echo " writable = yes"
|
echo " writable = yes"
|
||||||
echo " guest ok = yes"
|
echo " guest ok = yes"
|
||||||
echo " guest only = yes"
|
echo " guest only = yes"
|
||||||
echo " create mode = 0777"
|
echo " force user = root"
|
||||||
echo " directory mode = 0777"
|
echo " force group = root"
|
||||||
} > "/etc/samba/smb.conf"
|
} > "/etc/samba/smb.conf"
|
||||||
|
|
||||||
smbd -D
|
smbd -D
|
||||||
wsdd -i dockerbridge -n Host -p
|
wsdd -i dockerbridge -p -n "host.local" &
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue