修正 smb.conf 文件。

Signed-off-by: rick.chan <cy@haoan119.com>
This commit is contained in:
rick.chan 2024-06-24 17:15:26 +08:00
parent fe4110a1ac
commit 2fe2ee05d6
1 changed files with 12 additions and 8 deletions

View File

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