diff --git a/Software/Applications/Samba/Linux_搭建_Samba_服务器.md b/Software/Applications/Samba/Linux_搭建_Samba_服务器.md index 259db5e..fc57173 100644 --- a/Software/Applications/Samba/Linux_搭建_Samba_服务器.md +++ b/Software/Applications/Samba/Linux_搭建_Samba_服务器.md @@ -51,17 +51,21 @@ sudo pacman -S samba manjaro-settings-samba ```ini [global] -security = user -guest account = nobody -map to guest = bad password +# security = user +# guest account = nobody +# map to guest = bad password + [NAME] -available = yes -browseable = yes path = /YOUPATH +available = yes +valid users = @ashabbir @root +read only = no +writeable = yes +browseable = yes public = yes -writable = yes -create mask = 0777 -sync always = yes +guest ok = no +# create mask = 0777 +# sync always = yes ``` 其中 NAME 为共享时虚拟的文件夹名,YOUPATH 为共享文件夹的路径。security 可以设置成 share 或 user 等,share 方式访问时不需要账户密码。