When I copy an old file to a share the motification time is not changed. Ok, the file has not been modified but since it is new to this share I like to change it's time to the copy time! There MUST be an option to do this!But I haven't found it yet :( Can anyone help? -- Torsten
On Tue, 8 Feb 2000 01:48:05 +1100, hai scritto:>When I copy an old file to a share the motification >time is not changed. Ok, the file has not been >modified but since it is new to this share I like >to change it's time to the copy time!What happens if you copy files on a win share? If samba changed the time when you copy a file then it would be a bug, and actually samba had this problem with nt machines, but it has been solved :-) -- giulioo@pobox.com
Hi there,>When I copy an old file to a share the motification >time is not changed. Ok, the file has not been >modified but since it is new to this share I like >to change it's time to the copy time! >There MUST be an option to do this!But I haven't >found it yet :( > >Can anyone help?Most likely you don't own the file. Only the owner of a file can change the timestamps on it. If you're working in a share where you've got write permissions on a file, but you don't own it, then you can modify it, but not change its timestamp. This at least is my experience. (samba 1.9.18p8, IRIX 5.3) I 'fixed' it by using 'force user' in the configuration for the share so that all operations are perfomred as the same user. (obviously all the files that are already in the share need to be changed to this owner). This is not really a good solution if you wish to access the shared disk from UNIX and have all the ownerships perserved though. It works well for me. Mac Assistant Systems Adminstrator @nibsc.ac.uk dmccann@nibsc.ac.uk Work: +44 1707 654753 x285 Everything else: +44 7956 237670 (anytime) NOTE: New Mobile Phone Number (see <URL:http://www.numberchange.org/> for why)
At 7 Feb 2000 14:46:41 GMT Torsten Curdt wrote:> When I copy an old file to a share the motification > time is not changed. Ok, the file has not been > modified but since it is new to this share I like > to change it's time to the copy time! > There MUST be an option to do this!But I haven't > found it yet :(This is currently a bug in Samba 2.0.6. Jeremy Allison posted a bugfix to the Samba NTDOM archive, that fixes this problem. See http://us1.samba.org/listproc/samba-ntdom/old/8131.html for details. Regards Paul ------------------------------------------------ NewTec GmbH System-Entwicklung und Beratung Buchenweg 3 D-89284 Pfaffenhofen