mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
update samba
This commit is contained in:
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:******
|
||||
|
Loading…
Reference in New Issue
Block a user