I would like to know how can I preserve file access time ("atime") when using "chmod". Sometimes I need to use the code below:
chmod -R 777 /directory
It works fine, however all the files inside that directory have the access time ("atime") changed to the current time. Do you have any idea?
NOTE: I am using CentOS 8.