Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add Autologin #152

Open
venividivici369 opened this issue Apr 20, 2023 · 7 comments
Open

Add Autologin #152

venividivici369 opened this issue Apr 20, 2023 · 7 comments
Labels
enhancement New feature or request

Comments

@venividivici369
Copy link

Is it possible to set up lemurs to autologin?

@coastalwhite
Copy link
Owner

At the moment, this is not possible. This would require some tweaking and PAM configuration, but is not impossible. How would you imagine this working?

Option 1

Lemurs opens to a screen without login fields, only the environment switcher is visible. After you select the environment it starts that environment.

Option 2

Lemurs starts the environment automatically. The environment is selected either by the last opened environment or by some explicit configuration open.

@coastalwhite coastalwhite changed the title autologin Add Autologin Apr 27, 2023
@coastalwhite coastalwhite added the enhancement New feature or request label Apr 27, 2023
@TomixUG
Copy link

TomixUG commented May 22, 2023

Any updates on this? It would be a really awesome feature!

@coastalwhite
Copy link
Owner

I have a rough idea in my head of how to implement this, but I am currently working on other things. I might revisit this issue somewhere in the future, though.

@ItsEthra
Copy link

Lemurs opens to a screen without login fields, only the environment switcher is visible. After you select the environment it starts that environment.

How would it possible to switch users in that case?

Let's say system has two users for one of which we want automatic login. One solution I can think of is to have a list of users which are marked for autologin and for them password field is not shown. Whenever system gets to the login page, if selected username is marked for autologin, start a timeout after which user loads without password(or if enter is pressed). If one attempts to change selected username, password field would be shown instead.

Though I am not sure if many people would want autologin with an option to switch users other than me 😄

@coastalwhite
Copy link
Owner

I am guessing there will be a configuration option with 3 possibilities:

  • autologin = "disabled": No autologin functionality at all
  • autologin = "no-prompt": Autologin which takes the cached environment, the last logged in user and automatically logs them in without ever prompting them. If they logout they will be prompted again.
  • autologin = "prompt": Opens lemurs as normal, but if the username is not changed. The password field will not be shown. If the user logs in with that username, it will automatically log them in without need for a password.

This is how I would envision it working. Again, I don't really have much time to work on this at the moment, but I might revisit this somewhere in the future. If someone feels like working on this, feel free to do so.

@vuongtuha
Copy link

Lean on opt 2 more. Users should create their config to confirm that they genuinely want to enable autologin.

@Doosty
Copy link

Doosty commented Jan 21, 2025

Im looking for a login greeter that supports autologin in this way:

  • autologin can be enabled and a timeout delay can be specified
  • when a user logs in once that login is then saved for a future autologin
  • the next time if nothing is pressed during the specified timeout seconds (eg 2 sec) then the autologin triggers and logs in the previously saved user to the previous graphical session

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants