Let's say I have a file named "app.log" and I want to find out which process is writing the log, but I have restricted permissions, I have tried the following:
lsof /path/to/file, which I dont' have this package and don't have the permission to install it.loggedfs -l /path/to/log_file -c /path/to/config.xml /path/to/directory tail -f /path/to/log_file, same as the first one, don't have the permission to install this package.auditctl -w /path/to/file, have this package but missing root permissions to run it.
what would be an alternative way to find out which process is writing the log to a file?
I'm looking for alternative ways because I'm working in an old production environment with some restricting and weird privileges.
lsof; no need to install it. Note that as non-root user, you have, no matter what you do very limited insight into what processes that are running as other users are doing. That's a very inherent security feature.