我找到了一些设置 samba 共享的说明,以便 Windows 可以看到我的文件夹。这两个说明有效,但仅适用于 Ubuntu 中的单个驱动器。我在 Ubuntu 中安装了第二个驱动器,sdb1
但不知道路径应该是什么或将smb.config
文件编辑到哪里。我在sdb1
驱动器上创建了一个文件夹并将其命名为test
。
[global]
server string = File Server
workgroup = NAMEOFWORKGROUP
security = user
map to guest = Bad User
name resolve order = bcast host
include = /etc/samba/shares.conf
[Public Files]
path = /share/public_files
force user = smbuser
force group = smbgroup
create mask = 0664
force create mode = 0664
directory mask = 0775
force directory mode = 0775
public = yes
writable = yes