I have multiple test user accounts on a Linux box. These accounts have different (restricted) shells, with unique login scripts and crontabs configured. When I power up and log into my system using my regular account, I would like all of these other users to be automatically logged in (in the background) as well. How can this be done?
In essence, I want it to be as if those users are actually logged into the machine with me, doing stuff (the login scripts and cron jobs simulate activity), without human users (or other machines) actually needing to establish a connection to my box, enter login credentials, or any of that sort of thing. Apart from getting those test users logged in, I do not need any additional interactivity.
I realise that I can run processes as arbitrary users, but I don't (think I) want to do that. I want the commands executed by these test users to have the whole environment and side-effects of a restricted shell. I want to be able to type
who and see their names come up.