I tried to cat
, using a non-root user, the /etc/shadow
file. Access has been denied due to lack of permissions, but here's the thing:
In which file in the Linux registry (/var/log
) is this attempt to access /etc/shadow
stored? I have been looking for it, but I am unable to find it.
Thank you.
cat
just receives anEACCES
(Permission denied) return value from theopenat
system call, and writes the corresponding message to standard error.