T Tâm Tây New member Jan 12, 2022 #1 How do I log all sudo activities? Answer How to log all sudo commands Edit the sudoers file by running visudo. visudo. Add the below line to the Defaults section. Defaults logfile=/var/log/sudo.
How do I log all sudo activities? Answer How to log all sudo commands Edit the sudoers file by running visudo. visudo. Add the below line to the Defaults section. Defaults logfile=/var/log/sudo.