samba 共享的文件,被修改后,会被增加执行位。
要保留原来的属性,只需要修改 /etc/samba/smb.conf
[global]
......
map archive = no
参考: https://stackoverflow.com/questions/20958888/preserving-file-permissions-for-samba-shares-when-file-is-edited
https://en.wikipedia.org/wiki/Archive_bit
https://www.linuxquestions.org/questions/linux-server-73/samba-adds-execute-flag-to-all-new-files-783263/
https://www.samba.org/samba/docs/using_samba/ch08.html