[Samba] Windows changes file ownership & ACL's - any solution?

Gary Algier gaa at ulticom.com
Thu Feb 21 07:02:09 GMT 2002


I believe your problem is with Word.  It creates a new temp file, then deletes
the old and renames the temp file to the original name.  As a test:

1) Create foo.doc. (With word).
2) Create foo.txt. (With notepad).
3) On the unix system:
    ls -li foo.*    Note the inode numbers, etc.
4) Edit each file with their respective editor.
5) On the unix system:
    ls -li foo.*    Did they change?

If so, there is no fix, unless there is a way to get Word to act correctly.


Josh Konkol wrote:
> I'm re-posting this only because I didn't get any responses before.  ANY help 
> is very much appreciated. 
> 
> I'm running SuSE 7.0, Samba 2.2.2 w/Winbind, Pam, on 2.2.20 Kernel w/ACL 
> Support.
> 
> I have just verified that I'm having this same problem.  Exactly.  I saved a 
> file on a Samba share, then I verified I was the owner.  I then went to a 
> co-worker's computer and opened, edited, saved the file with M$ Word.  Now 
> when I look at ownership, it is set to him as the owner and the permissions 
> are reset.  When I follow the same steps using Notepad, the ownership and 
> permissions aren't changed.
> 
> Here are the settings for my share:
> 
> [share]
>         comment = Test Winbind Share
>         path = /mnt/share
>         create mask = 0777
>         browseable = Yes
>         writeable = yes
> 
> Here is the ACL for the file before I edited it with M$ Word.
> 
> linux10:/mnt/share # getfacl acltest.doc
> # file: acltest.doc
> # owner: DOMAIN+$ejwk
> # group: DOMAIN+Domain Users
> user::rwx
> user:DOMAIN+I10201:rwx
> group::rw-
> mask::rwx
> other::rw-
> 
> Here is the ACL for the file After I edited it with M$ Word.
> 
> linux10:/mnt/share # getfacl acltest.doc
> # file: acltest.doc
> # owner: DOMAIN+I10201
> # group: DOMAIN+Domain Users
> user::rwx
> group::rw-
> other::rw-
> 
> How do we work around this problem.  
> 
> Anyone have any ideas or having the same problems ??
> 
> TIA
> 
> Josh Konkol
> 
> 
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> 


-- 
Gary Algier, WB2FWZ          gaa at ulticom.com             +1 856 787 2758
Ulticom Inc., 1020 Briggs Rd, Mt. Laurel, NJ 08054      Fax:+1 856 866 2033

        A self-addressed envelope would be addressed "envelope."





More information about the samba mailing list