💻 Software
How can I find out which user logged in as root?
Fresh7 days ago
Mar 15, 202632160 viewsConfidence Score0%
0%
Problem
We have a couple of servers which are managed by a large group of admins. They usually log in as service users (say ) and then switch to to make some small fix. This means we often can't map a change made to a person. Does anyone have a script for Unix/Linux which can tell me which user logged in a…
Error Output
> last -t 20101029174200 root root pts/26 :0.0 Wed Oct 20 15:36 - 15:03 (23:27) wtmp begins Fri Oct 1 16:34:36 2010
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How can I find out which user logged in as root?
Low Risk
you should be able to determine who is becoming root by parsing . for example, if i su to root on my own box, a line like this is entered in : now looking in , we see: which lets us correlate uid 1000 to a name. writing a perl script to do this shou…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix