
在 CentOS 7 服务器上安装了 Samba,开启局域网文件共享,结果发现一个问题,所有 html 后缀的文件都不能编辑。
例如一个文件 index.html,修改后保存会提示这个:

即使以管理员权限启动 Notepad++ 依然无法保存,换其他编辑器也是相同情况。
但是如果把它重命名为 index.php 或者其他后缀就可以正常保存。
有大佬知道这是什么原因吗?
附上 Samba 配置文件:
# 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 = SAMBA security = user passdb backend = tdbsam printing = cups printcap name = cups load printers = yes cups optiOns= raw [homes] comment = Home Directories valid users = %S, %D%w%S browseable = No read Only= No inherit acls = Yes [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 [rootfs] writeable = yes locking = no path = / force directory mode = 755 force group = root force create mode = 755 revalidate = yes force user = root 1 OscarUsingChen 2019 年 4 月 1 日 |
2 KasuganoSoras OP @OscarUsingChen Soga,原来是这个问题,一直没想到 |