[Samba] Re: copying over an existing file when not owner

Gerald (Jerry) Carter jerry at samba.org
Wed Aug 25 19:16:34 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dragan Krnic wrote:
|>SuSE 8.2/Samba 3.0.4-SerNet-SuSE
|>
|>One expects file's owner and date to be preserved
|>when copying a file to an SMB share. But if a file
|>with the same name is already there, there are two
|>different results as to who will ultimately own the
|>new file and what date will be stamped depending
|>upon whether the file belongs to the copier or to
|>someone else.
|>
|>If I try to copy a file to a samba share which
|>already contains an earlier version of the same
|>file, the file will still belong to me and the
|>date will be the date of the source file.
|>
|>But if I copy a file over an existing homonymous
|>file which belongs to someone else, then the file
|>will still belong to that other user but the date
|>will be the date at the moment of copying.

Try setting 'dos filetimes = yes'.  See the smb.conf(5)
man page for details.




cheers, jerry
- ---------------------------------------------------------------------
Alleviating the pain of Windows(tm)      ------- http://www.samba.org
GnuPG Key                ----- http://www.plainjoe.org/gpg_public.asc
"If we're adding to the noise, turn off this song"--Switchfoot (2003)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBLOWSIR7qMdg1EfYRAt8JAKDC21ezlrfCq5psr7JmXHN0fG6F6gCg1Y0K
CoJUikZN+ZTAQdriA0v6VTM=
=iynO
-----END PGP SIGNATURE-----


More information about the samba mailing list