1

On one terminal

root@Andromeda:~# lastb

btmp begins Sat Mar  2 10:03:44 2019

On another one:

$ sudo su -
[sudo] password for pkaramol: 
Sorry, try again.
[sudo] password for pkaramol: 
Sorry, try again.
[sudo] password for pkaramol: 
sudo: 3 incorrect password attempts

Back to the first terminal again

root@Andromeda:~# lastb

btmp begins Sat Mar  2 10:03:44 2019

Why lastb isn't logging the failed su attempts?

Using Ubuntu 18.04.02

  • Try to login in normally. sudo login attempts are usually in /var/log/secure, at least in RH based systems. – Rui F Ribeiro Mar 3 at 17:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.