Linux User Process Startup

In Linux, what happens after a user logs in depends on the type of login: