title: How to run a script after user login authentication in linux
body: <p>I have a script which I want to run just after user log-in authentication. To accomplish this, I added the script name in <code>/etc/rc5.d/S##rc.local</code> file. But later i got to know that, anything that is added in rc.local file gets executed in boot time of the system not after the login authentication. Can anyone tell me how to run the script after user login authentication?</p>