修正 smb.conf 文件。
Signed-off-by: rick.chan <cy@haoan119.com>
This commit is contained in:
parent
fe4110a1ac
commit
2fe2ee05d6
|
@ -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 方式访问时不需要账户密码。
|
||||
|
|
Loading…
Reference in New Issue