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

update smb.conf

This commit is contained in:
kev 2016-04-07 08:56:01 +08:00
parent bd0606b61d
commit dfb6d24cff
2 changed files with 7 additions and 4 deletions

@ -34,8 +34,9 @@ map to guest = bad user
[share]
path = /share
browseable = yes
read only = yes
read only = no
guest ok = yes
admin users = root
```
## server
@ -43,7 +44,6 @@ guest ok = yes
```
$ cd ~/fig/samba
$ mkdir share
$ chmod 777 share
$ touch share/README.txt
$ docker-compose up -d
$ docker exec -it samba_samba_1 sh
@ -60,7 +60,7 @@ $ smbutil view -NG smb://server
Share Type Comments
-------------------------------
share Disk
IPC$ Pipe IPC Service (52e5ac2d2d7c server (Samba, Apline))
IPC$ Pipe IPC Service (Samba Server)
2 shares listed
$ mkdir -p /Volumes/share
@ -68,4 +68,6 @@ $ mount_smbfs //guest@server/share /Volumes/share
$ umount /Volumes/share
```
> `root` user can read and write, `guest` user can read only.
[1]: https://www.samba.org/

@ -21,5 +21,6 @@ load printers = no
[share]
path = /share
browseable = yes
read only = yes
read only = no
guest ok = yes
admin users = root