If I were doing this, I'd create a file called /bin/userlogin:
Code:
script1
script2
bash
Then, run:
Code:
chown root:root /bin/userlogin
chmod 755 /bin/userlogin
to protect the file from modification
I'd then change the user's entry in /etc/passwd from:
Code:
frakir:x:5011:100:Frakir,,,:/home/frakir:/bin/bash
to
Code:
frakir:x:5011:100:Frakir,,,:/home/frakir:/bin/userlogin
Then, when that user would log in, the userlogin script would be run, dropping them to bash when it was finished.
Alternatively, you could add the script to the end of /etc/profile, but that applies to everyone, not just the users you want it to apply to.