我似乎无法在 Windows 10 上共享 Centos 7 中的文件夹。
我已经在Windows 10中激活了SMB功能(客户端和服务器),并在centos 7中配置了smb.conf文件以允许所有用户的读写权限。
我在配置文件中配置了三个共享选项;共享、存储和测试,我能够访问共享选项,但它损坏了服务器上数据库(访问)的选项。文件权限出现问题,当用户编辑/保存文件时文件被损坏。
这是我的 smb.conf 文件:
# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
[global]
workgroup = WORKGROUP
security = user
netbios name = files
idmap config * : backend =tbd
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
[homes]
comment = Home Directories
browseable = No
inherit acls = Yes
read only = No
valid users = %S %D%w%S
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @printadmin root
force group = @printadmin
create mask = 0664
directory mask = 0775
[Share]
oplocks = no
writeable = yes
locking = no
path = /srv/samba/files/share
force user = nobody
comment = Temp file-server
create mode = 777
public = yes
browsable = yes
directory mode = 777
[Storage]
oplocks = no
writeable = yes
locking = no
path = /mnt/b70a0058-040e-4815-8bcf-2b5bc5ce6f03/Share
force user = nobody
comment = File Server Share
create mode = 777
public = yes
browsable = yes
directory mode = 777
[test]
guest account = admin
oplocks = no
writeable = yes
locking = no
path = /mnt/b70a0058-040e-4815-8bcf-2b5bc5ce6f03/test
force user = admin
comment = Temp file-server
public = yes
browsable = yes
create mode = 777
directory mode = 777