[Samba] Excel Read only file bug back on 3.0.23x?

Roland Hordos rolandhordos at tundraeng.com
Tue Oct 31 21:01:42 GMT 2006

Diego do you use Share Definition ACLs as well?  I use force group,
create mask, and directory mask only but am re-visiting all of this back
to the drawing board.  I'd like to eliminate anything that provokes
Samba to use it's magic root override.  There are so many options I've
never tried and lack a repeatable test case, but might be useful for
you.  Table 16.3 in the doc might give you the combination of Share
Definition ACL <-> File System ACL settings you need.


For comic relief, you might get a laugh out of this statement I pulled
out of the "User and Group Based Access Controls" section:

  "As always, it is highly advisable to use the easiest to maintain and
the least 
   ambiguous method for controlling access."

I hope the author is using 3.0.23c in production.

Thanks for sharing your progress.


-----Original Message-----
From: Diego Julian Remolina [mailto:diego.remolina at ibb.gatech.edu]
Sent: Tuesday, October 31, 2006 10:31 AM
To: Roland Hordos
Cc: samba at lists.samba.org
Subject: Re: [Samba] Excel Read only file bug back on 3.0.23x?

Here are more findings,

The problem is repeatable upon a fresh restart on the CentOS 4 machine
with samba 3.0.23c for new 
files as follows:

1. Craig creates a new excel file and saves it as Test.xls

2. Andrea opens the file, make modifications to it and hits save. Now
she gets an error message:
The Document was saved succesfully, but Excel cannot re-open it because
of a sharing violation.
Please close the document and try to open it again.

3. Now someone has to right click on the document, remove the read-only
attribute and then both 
Craig or Andrea will be able to save any changes to the file without

4. Another user, Lorne, opens the file, makes changes, then saves and
the problem comes back. 
However after saving and clearing the read-only box now the 3 current
users either owning the file 
or listed in the ACLS will be able to modify the file without further
problems until a new user that 
does not own the file, nor is listed in the extended ACLs opens the file
(even while he is part of 
the "P3 Admin" group tha already has rw permissions).

The folder permissions are shown below and all the users are part of the
group that owns the folder:

[root at p3ha1 Admin]# ls -ld .
drwxrws---+ 20 administrator P3 Admin 8192 Oct 31 10:52 .

[root at p3ha1 Admin]# getfacl .
# file: .
# owner: administrator
# group: P3\040Admin

[root at p3ha1 Admin]# getfacl Project\ Schedule\ Overview\ 11-06-06.xls
# file: Project\040Schedule\040Overview\04011-06-06.xls
# owner: abeck
# group: P3\040Admin

[root at p3ha1 Admin]# ls -l Project\ Schedule\ Overview\ 11-06-06.xls
-rw-rwx---+ 1 abeck P3 Admin 177152 Oct 31 10:52 Project Schedule
Overview 11-06-06.xls

All the users are part of the "P3 Admin" group.


Roland Hordos wrote:
> Is your problem repeatable, for all users, and even on a fresh smb
> restart?  For me it is not and this is the trickiest part of tracing
> this bug.
> I am desperately trying to resolve this as well.  Have not received
> replies from this board whatsoever.  Currently re-visiting every
> parameter and samba default setting change across releases.  Good luck
> and please post any results.
> thanks, Roland;
> -----Original Message-----
> From: samba-bounces+rolandhordos=tundraeng.com at lists.samba.org
> [mailto:samba-bounces+rolandhordos=tundraeng.com at lists.samba.org]On
> Behalf Of Diego Julian Remolina
> Sent: Monday, October 30, 2006 10:50 AM
> To: samba at lists.samba.org
> Subject: [Samba] Excel Read only file bug back on 3.0.23x?
> Hi,
> I believe that the BUG 2346 which was resolved in samba 3.0.14 has
> back in the 3.0.23 series. 
> Here is what I have noticed on two separate configurations. The samba
> packages were built on each 
> machine using rpmbuild with the SRPMS provided for Fedora in the samba
> web site.
> Configuration 1.
> Two machines running with RHEL4, samba 3.0.23b-1, drbd-0.7.21 protocol
> C.
> Kernel: 2.6.9-42.0.3.ELsmp
> Configuration 2.
> Two machines running with CentOS 4, samba 3.0.23c-4, drbd-0.7.21
> protocol C.
> Kernel: 2.6.9-42.0.2.ELsmp
> I do not believe none of this is related to DRBD, but I mention it
> in case. The problem occurs 
> as follows:
> 1. User Alice opens an excel files owned by her, makes changes and
> it.
> 2. User Bob opens the same file which Alice just saved and makes come
> changes. When Bob saves the 
> file, he gets a warning that there is a problem and that changes could
> not be saved, however changes 
> are saved.
> 3. Either Alice or Bob try to open the file and now it is a read only
> file.
> The only way anyone can save the file is if they first right click on
> and uncheck the read-only 
> checkbos prior to openning. However, the next time a different user
> opens the file and saves it, the 
> problem comes back.
> Are there any settings that can be changed in smb.conf to help prevent
> this front happening? Is 
> anyone else experiencing this behaviour? Is it possible that the BUG
> 2346 came back?
> Any help would be greatly appreciated.
> Thanks,
> Diego

More information about the samba mailing list