1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00

update samba

This commit is contained in:
kev 2016-04-24 09:49:31 +08:00
parent 161e83f4f8
commit d68e4af1fe

View File

@ -18,7 +18,22 @@ samba:
restart: always restart: always
``` ```
> An USB flash drive is mounted at `/mnt/usb`. ## mnt-usb.mount
An USB flash drive is mounted at `/mnt/usb`.
```
# /etc/systemd/system/mnt-usb.mount
[Unit]
Description=USB Storage Mount
[Mount]
What=/dev/disk/by-uuid/829B-2038
Where=/mnt/usb
[Install]
WantedBy=local-fs.target
```
## smb.conf ## smb.conf
@ -53,6 +68,7 @@ $ mkdir share
$ touch share/README.txt $ touch share/README.txt
$ docker-compose up -d $ docker-compose up -d
$ docker exec -it samba_samba_1 sh $ docker exec -it samba_samba_1 sh
>>> testparm
>>> smbpasswd -a root >>> smbpasswd -a root
New SMB password:****** New SMB password:******
Retype new SMB password:****** Retype new SMB password:******