I am trying to understand if there is any logging happening for this command in any log file:
$ su - user1
su: user user1 does not exist
I checked /var/log/messages
, /var/log/secure
and /var/log/audit/audit.log
, but couldn't find any message related to the command above.
Note - user1
is non-existent.
If I am trying with a valid username and giving an invalid password I am able to see the failure messages in the log files above. With an invalid username there is no logging happening in these files. If this is the default behaviour, is there anyway we can enable logging for these messages?