[Samba] Keeping file permissions on file overwrite
hlewis at panasas.com
Mon Mar 29 16:05:50 GMT 2004
This is not a Samba problem but a problem with the way Windows
applications edit files. Word (and many other apps) will actually
rename the original file, create a new file and save to this and
then delete the original file. They do not make modifications to
the original file. So the behaviour you see is exactly what
windows is telling samba to do.
Eddy Ilg wrote:
> I am trying to get a share on which new files will be created with
> -rw-r--r-- and permisisons on existing files will be kept.
> For example if I have a file with permissions -rwxr-xr-x
> then I want the file to keep these permission bits when it is overwritten
> from a windows editor.
> I have played with different mask/mode settings and the map archive
> setting, but when I edit a file from a windows Machichne and save it,
> the existing permissions are always overritten with the ones that
> a new file would have. If I open a -rwxr-xr-x file and then overwrite it,
> it has -rw-r--r-- bits.
> Can I tell Samba not to overwrite the permissions?
More information about the samba