I would like to find files accessed by specific user (even just read) within a folder tree. I thought the find command had this option, but it actually just searches for owner user. Is there any other command, or command combinations? The stat command offers access information, but doesn't display the user who made access.
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
|
|||||
|
|
This information is not stored by traditional filesystems. You have three main options: |
|||||||||
|
|
As far as I know, the only way to perform this is by activating auditd in your system. this way, it will log the access to all files and you can grep the logs files. Be careful as the logging will be "heavy". |
|||
|
|