I have a script that I want to run immediately after user authentication. For this, I added the name of the script to the file /etc/rc5.d/S##rc.local. But later I found out that everything that is added to the rc.local file is executed at boot time not after login authentication. Can someone tell me how to run the script after user authentication after login?
source
share