How do I get a report (either CSV or an Excel file) on who is using sudo on my machine, and which account they're switching to?

  • Please state your distribution. On Debian sudo logs are written to /var/log/auth.log. Jan 30, 2016 at 10:23

1 Answer 1


On UNIX-like systems, sudo is typically configured to log to a text file. For example, on Red Hat Enterprise Linux systems that is usually /var/log/secure, but it may be configured differently on your system. You should consult your system's man pages for information on how it is configured in your environment. Once you've confirmed your system's configuration, you should be able to easily find the information you are seeking via one of the text reading commands like less or more.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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