Solved

Track sudo userids

Posted on 2013-05-24
3
375 Views
Last Modified: 2013-06-07
I am trying to see if there is a way to tell what user used sudo to do work on the server. I need to know if there is a log file that has the userid of the person who invoked sudo to make changes in the system.

Thanks
0
Comment
Question by:hsdoctor
3 Comments
 
LVL 19

Accepted Solution

by:
jools earned 134 total points
ID: 39194325
this is usually logged in /var/log/messages or perhaps /var/log/secure, depends on your distro.
0
 
LVL 19

Assisted Solution

by:simon3270
simon3270 earned 133 total points
ID: 39194685
or /var/log/auth.log (Ubuntu, Arch etc))
0
 
LVL 28

Assisted Solution

by:Jan Springer
Jan Springer earned 133 total points
ID: 39194737
You can also define the name of the file to which you wish to log transactions in /etc/sudoers.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question