1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00

update samba

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

@ -18,7 +18,22 @@ samba:
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
@ -53,6 +68,7 @@ $ mkdir share
$ touch share/README.txt
$ docker-compose up -d
$ docker exec -it samba_samba_1 sh
>>> testparm
>>> smbpasswd -a root
New SMB password:******
Retype new SMB password:******