I need to get detailed information of certain file or folder;
- File chmod changed date, which user?
How can i do this?
You can try to use inotifywait
Try like this:
See the blogpost here: http://en.positon.org/post/A-solution-to-the-umask-problem%3A-inotify-to-force-permissions
And the man for inotifywait: http://linux.die.net/man/1/inotifywait
There is no way to do this (that I know of, I could be corrected and learn something as well) unless you've installed a package to handle this. Meaning, if you didn't plan ahead and monitor a file, there is no way to get this information. All you'll be able to get from the file is the basic information that the
That being said, in the future there are packages like audit that help you handle this and after you set a file to be audited, a simple