Answer the question
In order to leave comments, you need to log in
How to see the history of what commands were executed on behalf of sudo (root) on linux?
Somewhere I read that what commands we run on behalf of sudo, then the launch of this command is logged in the log file. But I don't remember this file. Please, help.
Answer the question
In order to leave comments, you need to log in
In ubuntu (probably also in debian) it is written to /var/log/auth.log:
Nov 25 01:12:08 host.domain sudo: galaxy : TTY=pts/1 ; PWD=/home/user ; USER=root ; COMMAND=/bin/bash
sudo su -
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question