canonical / lightdm

Display Manager
GNU General Public License v3.0
813 stars 137 forks source link

How can I switch-to-user non-interactively? #327

Open madorian opened 8 months ago

madorian commented 8 months ago

I've found references to this, but it says it will interactively ask for a password.

dm-tool switch-to-user USERNAME

I need to be able to just log in that user, non-interactively, either bypassing the password or supplying it in my script. I cannot depend on user interaction.