Run Script on User login

Hey,

Wondering if there is a way to trigger a script on login for specific users, or users of a group?

Basically I want to, as a security measure, have multiple usernames for each admin, a Read Only and a Full Access. For the Read Only users, they can log in and look at everything without problem, but as soon as a Full Access user logs in, I want the router to take a backup (either .backup, or export compact into .rsc, whichever is less intensive for the router), and email it to a specified email address with a message saying ‘User X just logged in’.

Is this possible?

I thought about scripts to check over the logs - the problem with this is though unless it runs every second or 2, then there could be enough time for a user to log in and change the router before backup is taken and sent away.

Thanks.

enough time for a user to log in and change the router before backup is taken and sent away

What you can do deliberatly ln 2 sec?
If you not trust your administrators, simply do not give at anyone the admin accounts

well, I need to add user IP to address-list “support” on user successfull login via ssh to allow non-blocking connect via firewall this IP

so I really need to run script on user login