ACL + excel = problems with permissions

Olaf Frączyk olaf at cbk.poznan.pl
Mon Feb 14 13:39:56 GMT 2005


Hi,

Samba 3.0.11 (and previous :)
Windows 2000 PL SP4, Office 2000 PL SP3

The problem is that when a user that is not the owner of .xls file opens
it and then saves it, then he gets read-only access to this document.

The parent foleder has the following rights:

# file: WYNAGRODZENIA
# owner: piotr
# group: users
user::rwx
group::---
group:dyrekcja:rwx
group:administracja:rwx
mask::rwx
other::---
default:user::rwx
default:group::---
default:group:dyrekcja:rwx
default:group:administracja:rwx
default:mask::rwx
default:other::---

When you have file:
# file: Commercial.xls
# owner: piotr
# group: users
user::rwx
group::---
group:dyrekcja:rwx
group:administracja:rwx
mask::rwx
other::---

Next user aga opens the file and saves it.
The user gets info (from Excel) translated from Polish:
"The Document was saved succesfully, but Excel cannot re-open it because
of not enough memory available. Please Close the Document and try
again." 

Don't know why this message appears, as it has plenty memory free.

Then I see:
# file: Commercial.xls
# owner: aga
# group: users
user::r--
user:piotr:rwx
group::---
group:dyrekcja:rwx
group:administracja:rwx
mask::rwx
other::---

Next if aga wants to open the document, she gets it read-only.

So excel saved the file with new owner, recreated ACL list, but gave the
owner only the "Read" right.

At the beginning I thought that it is caused by setting (by Excel) the
file as "read-only" what would cause samba to map it to "r--" right, but
this is not the case. I set: 
store dos attributes=yes for this share,
and the results are the same. So it is not the "read-only" mapping
problem:

[root at venus WYNAGRODZENIA]# getfattr -d Commercial.xls
# file: Commercial.xls
user.DOSATTRIB="0x0"

I also tried to use:

force create mode = 0700

to ensure that the owner always gets "rwx" right, but it changed
nothing.

Is there any way to ensure the owner/creator to have "rwx" rights?

Any idea what causes this "not enough memory" message?

The second thing is that after opening this document by 20 persons it
will end up with 20 ACL entries. And it is a real hell.
I would expect that 
a. the file owner changes only, and the old owner is not in the new ACL
list.
or
b. the file owner doesn't change, the last accessing user is not added
to the list.

Is there anything that can be corrected on the samba side, or this is
Excel problem?

Regards,

Olaf

-- 
Olaf Frączyk <olaf at cbk.poznan.pl>



More information about the samba-technical mailing list