Few weeks ago I thought it would be a good idea to write a script which should send me an email whenever some user would log in into my server.
So I came to a perfectly working script
notifyLogin.sh, then I decided to call it from each user's
So long so good but today I discovered that someone could log in in my server using
-t option selecting thus an available shell. For example:
ssh user@myserver -t sh
.bash_login do not execute, neither
My question is: Is there any "universal" (that means that id does not matter which shell is being used) script that executes whenever a user log in?