Samba Share - MS Excel 保存时“无法访问该文件,可能有几个原因”

Samba Share - MS Excel 保存时“无法访问该文件,可能有几个原因”

我在 Ubuntu 10.10 上的 samba 3.5.4 共享中遇到了一个奇怪的问题。我为 3 个客户端 (A、B、C) 定义了一个共享。此共享包含一些 excel 文件,其中包含大量公式并相互关联。客户端 A 使用自由办公软件 (ubuntu) 访问该文件,客户端 B 使用 WinXP 和 MS Office 2003 访问该文件,写入和读取过程在两者上均成功运行。

当客户端 C 使用 MS Excel 2003(Windows XP)访问同一文件时,会出现问题。当他保存文件时,会出现此消息框:

Microsoft office excel cannot access the \\192.168.1.23\myshare\
There are several possible reasons: 

     - The File ort path does not exist The file is being used by another program. 
     - The workbook you are trying to save has the same name as a
     - Currently open workbooks.

我已经尝试过KB291204,但没有起作用。以下是我的共享定义:

[brainshare]
comment = brainshare
path = /opt/brainshare/
valid users = @brainshare
force group = brainshare
read only = No
create mask = 0775
veto files = /*.scr/*.eml/thumbs.com/

我该如何解决此问题?

答案1

问题解决了。解决方案来自[电子邮件保护]

 Add this line to your share definition :
 # On 3 July 2012 13:11, Daniel Müller <[email protected]> wrote:
     directory mask=2770
     force directory mode=2770
     create mask = 2770
     force create mode=2770
     force security mode=2770
     force directory security mode=2770
     force group= yourgroup
 # Give the directory the sticky bit for the group

相关内容