修正 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
|
```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 方式访问时不需要账户密码。
|
||||||
|
|
Loading…
Reference in New Issue