```
[work]
comment = samba home directory
# this is the directory path to share
path = /home/ohos/Ohos/ # 设置的共享路径
public = yes
browseable = yes
public = yes
writeable = yes
read only = no
# user ‘ohos’ can access shared path above
valid users = ohos
create mask = 0777
directory mask = 0777
#force user = nobody
#force group = nogroup
available = yes
```