I would like to send mail to root anytime any user logs in via the web dashboard or by any other way (terminal ssh etc)
I would really appreciate a hint on this!!
I would really appreciate a hint on this!!
#!/bin/bash
/usr/bin/mail -s "new-root-login" user@domain.tld < /dev/null
# it works for guletz ;)
For this you can use swatch who can run a script when in a log file you find a string.what triggers the script for PVE authentication? I can trigger it if someone authenticates with PAM