Samba server is running in centos7, the folder is mounted in windows 10.
I can see all the files and folders, but I can not open any of them, I can not even copy from my sambashare folder to the windows machine.
However I can make new files and folders and they work, and also copy files into sambashare and they appear in centos7 with exactly the same permissions. I tried to clone the permissions from a windows created file with chmod --reference but still I can not access to previously created files.
This is my sambashare config
[global]
workgroup = WORKGROUP
security = user
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
[secure]
comment = Secure File Server Share
path = /home/user
valid users = user
guest ok = no
writable = yes
browsable = yes
force user = user
create mask = 640
directory mask = 750