Take the 2-minute tour ×
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.

When someone is not in the sudoers group and try to use sudo, get an error message like this one:

yzT is not in the sudoers file. This incident will be reported.

I'm trying to figure out in which log this information is logged, for check who tried to run a command with sudo for example, but can't find it.

The first Google search says /var/log/syslog but I don't see any information related to sudo there.

share|improve this question
2  
It's logged remotely: xkcd.com/838 –  depquid Mar 31 '13 at 12:21
add comment

2 Answers 2

On redhat based linux systems like centos or fedora it is in:

  /var/log/secure

and for debian based systems like ubuntu it is in:

  /var/log/auth.log
share|improve this answer
add comment

Never mind, it is in /var/log/auth.log.

share|improve this answer
    
Notices should also be emailed to root by default, though that is configurable. –  depquid Mar 31 '13 at 13:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.