User login information on console

Manas Bhatnagar b.manas.88 at gmail.com
Fri Jun 3 13:31:04 UTC 2016


>If someone logs in and su to root, then there is a line printed >on the
>first console.
>Is it possible to print this to all logged in root users with a >ssh session?

If you run a script to watch for any changes to /var/log/auth.log, you may be able to watch for messages about "su to root" and then use 'wall' to broadcast a message to users who are root? This might work but I'm not really sure.

Manas


More information about the freebsd-questions mailing list