From 2fe2ee05d624cf183a2f61d00c3fba6254f721c3 Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Mon, 24 Jun 2024 17:15:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20smb.conf=20=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- .../Samba/Linux_搭建_Samba_服务器.md | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) 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 方式访问时不需要账户密码。