Discussion Locked

file properties from MSOffice with Samba

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi, here is a Linux-Samba-MSOffice cuestion:

my server is Linux RedHat 7.1 with Samba 2.2.5-1 and my workstations are Win9x with MSOffice97, -- so far, so good -- our samba is configured in such way that permit access to every one to the "/users" directory

[users]
comment = workgroup directorie
path = /users
browseable = yes
writable = yes

in this directorie we have some subdirectories for some people and some subdirectories for other people (this is by Unix propertieschmod, chgrp, chown), ok here is the problem.....

When Office open an existing file it creates a temporary new file in which the owner is the user that open the file and the group is the user's group. When the user save the file, samba remove theoriginal file and rename the temporary file to the original file name, so if I already have some other group assign to that file I lost that group.
HOW CAN I DO TO KEEP THE ORIGINAL UNIX PROPERTIES???
Note: in some cases the properties of the fileare not the same of the directorie where it belongs.

Thank You.

7 replies

by roger

I don't have the answer to your question, but could suggest a good book for you to read that helped me set up a samba server. I was not concerned with who creates a file in a shared directory since all users with access to the share also have read/write priviledges to all files on it. Try reading the book Using Samba by O'Reilly press. It's available on-line here: http://www.oreilly.com/catalog/samba/chapter/book/index.html

by brian m

I think what you need to do is run "chmod g+s directory", where directory is the name of the directory. This causes Linux to create all files in that directory with the group name and permissions of the directory. The default is to create a file with the user and primary group name of the user creating the file. This chmod command will over-ride the default behavior, giving all files the same group.

by bg4

Try "force group" where group is the name of the group you want the file saved as. Read the man pages for more detail.

Hope this helps.

This discussion is closed to new replies.