ramlife

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

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

posted on 2020-12-08 16:06  ramlife  阅读(248)  评论(0编辑  收藏  举报