How to play an audio file on a failed login
Hey linux fans,
I know how to play an audio file or use festival to say a text message when there is a successful login. For example in my /etc/profile, I added this line at the bottom
echo welcome back $USER | festival --tts
So when I, david or root logs in, it play the audio
"welcome back david" or "welcome back root"
But, how do I do the opposite. If I enter the wrong password by mistake, I would like festival to say something as an example "get lost loser, try again" lol
If you know which file I need to edit or add to it, I greatly appreciate it.
Thanks
|