How can I run a script immediately after login before /etc/motd
is read?
I' m not looking to run the script from within /etc/profile.d
or ~/.bashrc
or ~/.profile
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityHow can I run a script immediately after login before /etc/motd
is read?
I' m not looking to run the script from within /etc/profile.d
or ~/.bashrc
or ~/.profile
If login via ssh, check the ForceCommand
option, see this question https://stackoverflow.com/q/33713680/1135424