Guides 11791 Published by

Linuxers shows you how to use the Sudo logging feature



I have been using sudo for more than two years and recently when I started working on RedHat based systems, I realized that I actually prefer a root shell(don't confuse with gui login) while performing administrative tasks. I am more careful - thinking twice before running a command, here than with sudo. But there is something about sudo that makes it a fantastic tool for multi-admin environments. I am talking about its logging capability.

In earlier days of Linux, when it was more or less following the same policies as Unix, there were only two kind of users - root and non-root. You had to be root to do a privileged task. This way if a system has multiple admins, there was no way to find out who ran what and when because they were all using the same login credentials. This was one of the primary issues which sudo addressed. It lets you do a privileged task as a non-root user and keeps a log of each command executed using sudo and helps answer the who, when and what questions.
  Sudo Logging Feature - helps in multi-admin Linux environments