diff --git a/samba/README.md b/samba/README.md index 0a46f8e..e0ef59e 100644 --- a/samba/README.md +++ b/samba/README.md @@ -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/ diff --git a/samba/smb.conf b/samba/smb.conf index de4f522..1aed2c5 100644 --- a/samba/smb.conf +++ b/samba/smb.conf @@ -21,5 +21,6 @@ load printers = no [share] path = /share browseable = yes -read only = yes +read only = no guest ok = yes +admin users = root