View Full Version : Shell script for autologin different users into a graphical environment

August 20th, 2015, 04:20 PM
Hey there,

I need your help with writing a shell script for logging in a user into a graphical desktop environment.
I like to boot the PC choose a random user from a list of users and than autologin this user into gnome or kde.
But I am not sure how to solve this. I read about ways to login a user in the terminal and also used it on raspberry, but I am stuck now how to solve this with Gnome or KDE and different and changing users.
I think I maybe have to script GDM if that is possible? Or maybe change the settings of GDM?

Any ideas on this?