Hi Corona688,
yes, and the user2 belongs to the same group of user1.
if I use just the command: touch -c test.txt , it works - the current date/time is setting, but any other date/time, it didnt work.
If it is not possible, I would like to know if anyone knows a workaround for this problem.
tks.
---------- Post updated at 11:47 AM ---------- Previous update was at 11:38 AM ----------
Hi,
I was looking for more information about this issue and I found out the website:
linux - Change file time (touch) - Stack Overflow and the problem is the same, however, it seems that there is not a solution:
"On Linux you must be the file owner (or root) to change the modification time to a time other than the current time. There are some other restrictions as well. man utime for complete details."
Even though, I am still looking for a workaround for it.
Tks.
---------- Post updated at 11:52 AM ---------- Previous update was at 11:47 AM ----------
BTW, the file needs to remain to the same owner, I cannot change the owner for the file.