[Samba] File Creation Dates Question

Gerald (Jerry) Carter jerry at samba.org
Sat Jan 18 15:31:01 GMT 2003


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

On Sat, 18 Jan 2003, Mike McMullen wrote:

> Hi all,
> 
> I searched the archives for a solution to this issue
> but didn't find any thing.
> 
> I have an office with a mix of PCs running ME and XP
> that use Samba 2.2.7 under RH Linux 7.3  as an archive 
> for mortgage information.
> 
> When documents are moved to the Samba share, the file
> creation timestamp on the Linux box reflects the time the files
> were created on the PCs. What I need is for the creation
> timestamp to be when it was created on the Linux box by
> the copy or move.
> 
> We have some scripts that execute every 20 minutes that
> use find to locate new files added within that time frame.
> Files are falling through the cracks because the script
> sees the original PC creation time and not the Linux creation
> time. 
> 
> Any insight on how to remedy this will be great appreciated!

You might be able to use the "map archive" parameter to help out.
The creation date on a file on a Samba share is really the mod 
time of the file.  Unix file systems only store 3 times (atime, 
ctime, & mtime).




cheers, jerry
 ----------------------------------------------------------------------
 Hewlett-Packard            ------------------------- http://www.hp.com
 SAMBA Team                 ---------------------- http://www.samba.org
 GnuPG Key                  ---- http://www.plainjoe.org/gpg_public.asc
 ISBN 0-672-32269-2         "SAMS Teach Yourself Samba in 24 Hours" 2ed
 "You can never go home again, Oatman, but I guess you can shop there."  
                            --John Cusack - "Grosse Point Blank" (1997)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQE+KXMDIR7qMdg1EfYRAsUlAJ92SvnrUrgJ+azEQ5k35017kcMOZQCgy0ZW
/dlNHmQjJL+29/n+uXKAK3w=
=nMks
-----END PGP SIGNATURE-----




More information about the samba mailing list