Am Freitag, 16. September 2016, 13:54:09 CEST schrieben Sie:> On Fri, Sep 16, 2016 at 07:34:44PM +0200, Karl Mauch wrote: > > Am Freitag, 16. September 2016, 09:26:18 CEST schrieb Jeremy Allison: > > > On Fri, Sep 16, 2016 at 02:37:33PM +0200, Karl Mauch via samba wrote: > > > > Hello, > > > > > > > > my problem: > > > > In the past "fake directory create times" did what I expect. The > > > > creation > > > > time of directories were fixed. > > > > Then I changed to samba 4 and "fake directory create times" did not > > > > work > > > > any longer. But I found a workaround and the creation times of > > > > directories were fixed. > > > > Today there was a virus and I restored a backup and the directory > > > > creation > > > > time is variable. After changing a file, the directory creation time > > > > is > > > > new. And I forget what I did in the past to workaround this problem in > > > > samba 4. It is configured as a PDC. > > > > > > > > Please help! The software in the directory is not working with jumping > > > > creation times. > > > > > > The "fake directory create times" code still > > > exists in Samba4 - shouldn't have changed at > > > all since 3.6.x. > > > > > > Can you describe more fully what create times you're > > > getting ? > > > > > > "fake directory create times" should always return > > > a create time of 1/1/1980 to clients. > > > > Thank you. > > There is no difference with or without "fake directory create times=yes". > > After changes in the folder, the creation time is changed too (current > > time) > Oh, have an idea what may be wrong - when the folder > is changed we may be updating the time internally > without paying attention to the "fake" time request.That's cool. You are programmer of samba :-). I didn't know that until now. The problem exists for some time. I tried on 4.5.0 and 4.1.12 - for example after adding a new subfolder, I get a new creation time. A software from my customer does not work because the activation key depends on the creation time of some folders. When changing to samba4 I used a command in the command line, which has fixed the creation time, but the bash_history was deleted. Do you have any idea? Otherwise I copy the files temporarily to a Windows computer and hope that you can fix the bug with "fake directory create times" soon. Thank you very much.
Am Samstag, 17. September 2016, 13:29:27 CEST schrieb Karl Mauch via samba:> Am Freitag, 16. September 2016, 13:54:09 CEST schrieben Sie: > > On Fri, Sep 16, 2016 at 07:34:44PM +0200, Karl Mauch wrote: > > > Am Freitag, 16. September 2016, 09:26:18 CEST schrieb Jeremy Allison: > > > > On Fri, Sep 16, 2016 at 02:37:33PM +0200, Karl Mauch via samba wrote: > > > > > Hello, > > > > > > > > > > my problem: > > > > > In the past "fake directory create times" did what I expect. The > > > > > creation > > > > > time of directories were fixed. > > > > > Then I changed to samba 4 and "fake directory create times" did not > > > > > work > > > > > any longer. But I found a workaround and the creation times of > > > > > directories were fixed. > > > > > Today there was a virus and I restored a backup and the directory > > > > > creation > > > > > time is variable. After changing a file, the directory creation time > > > > > is > > > > > new. And I forget what I did in the past to workaround this problem > > > > > in > > > > > samba 4. It is configured as a PDC. > > > > > > > > > > Please help! The software in the directory is not working with > > > > > jumping > > > > > creation times. > > > > > > > > The "fake directory create times" code still > > > > exists in Samba4 - shouldn't have changed at > > > > all since 3.6.x. > > > > > > > > Can you describe more fully what create times you're > > > > getting ? > > > > > > > > "fake directory create times" should always return > > > > a create time of 1/1/1980 to clients. > > > > > > Thank you. > > > There is no difference with or without "fake directory create > > > times=yes". > > > After changes in the folder, the creation time is changed too (current > > > time) > > > > Oh, have an idea what may be wrong - when the folder > > is changed we may be updating the time internally > > without paying attention to the "fake" time request. > > That's cool. You are programmer of samba :-). I didn't know that until now. > The problem exists for some time. I tried on 4.5.0 and 4.1.12 - for example > after adding a new subfolder, I get a new creation time. > A software from my customer does not work because the activation key depends > on the creation time of some folders. When changing to samba4 I used a > command in the command line, which has fixed the creation time, but the > bash_history was deleted. Do you have any idea? > Otherwise I copy the files temporarily to a Windows computer and hope that > you can fix the bug with "fake directory create times" soon. > Thank you very much.Hi Jeremy Allison, do I have a chance to get a bug fix to the non-functioning "fake directory create times"? Can you reproduce my problem? Best regards
>> on the creation time of some folders. When changing to samba4 I used a >> command in the command line, which has fixed the creation time, but the >> bash_history was deleted. Do you have any idea? >> Otherwise I copy the files temporarily to a Windows computer and hope that >> you can fix the bug with "fake directory create times" soon. >> Thank you very much.You're probably looking for the "touch" command the change the times from the shell: NAME touch - change file timestamps SYNOPSIS touch [OPTION]... FILE... DESCRIPTION Update the access and modification times of each FILE to the current time. A FILE argument that does not exist is created empty, unless -c or -h is supplied. A FILE argument string of - is handled specially and causes touch to change the times of the file associated with standard output. Mandatory arguments to long options are mandatory for short options too. -a change only the access time -c, --no-create do not create any files -d, --date=STRING parse STRING and use it instead of current time -- This message is intended only for the addressee and may contain confidential information. Unless you are that person, you may not disclose its contents or use it in any way and are requested to delete the message along with any attachments and notify us immediately. This email is not intended to, nor should it be taken to, constitute advice. The information provided is correct to our knowledge & belief and must not be used as a substitute for obtaining tax, regulatory, investment, legal or any other appropriate advice. "Transact" is operated by Integrated Financial Arrangements Ltd. 29 Clement's Lane, London EC4N 7AE. Tel: (020) 7608 4900 Fax: (020) 7608 5300. (Registered office: as above; Registered in England and Wales under number: 3727592). Authorised and regulated by the Financial Conduct Authority (entered on the Financial Services Register; no. 190856).