答案1
您可以通过两种方式执行此操作:
- 使用鹦鹉螺共享文件夹,或
- 直接写信给桑巴配置文件在这里
/etc/samba/smb.conf
对于第一种情况,这样做:
- 创建共享文件夹并随意命名
- 右键单击文件夹并选择本地网络共享
在出现的对话框中选择两项:
然后,将在该位置创建一个
/var/lib/samba/usershare
包含您添加的更改的文件,以便您可以手动在那里进行更改。
对于部分选项,您向/etc/samba/smb.conf
文件添加了单独的共享:
[Your Share name goes here]
path = /your/folder/goes/here
writeable = yes
; browseable = yes
guest ok = yes
create mask = 777
directory mask = 777
笔记:
To use the above (second method) you will need to un-share any _previously_ shared folder from _option 1_ or that which you had done.
To set permissions of newly created documents / files edit /etc/samba/smb.conf and in the [global] section add :
create mask = 0644
directory mask = 0755
我更喜欢前者,但我想这取决于你。
资料来源: