Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

autologin-user by user id (UID) and not user name #347

Open
guysoft opened this issue Mar 23, 2024 · 1 comment
Open

autologin-user by user id (UID) and not user name #347

guysoft opened this issue Mar 23, 2024 · 1 comment

Comments

@guysoft
Copy link

guysoft commented Mar 23, 2024

Hey,
I maintain a raspberrypi distribution that boots a graphical user interface using autologin (FullPageOS).
Recently Rpi Foundation added a feature that on flashing changes the name of the user, but not the user id. So what I would like is to have
autologin-user=UID:1000 or something like that.
I can't find documation how this would be do apart from the config file itself.

I tried looking in common/configuration.c but could not understand where the value is being used after configured?

Is this something that I can add?

In the short one I am adding a workaround systemd service that would overwrite the lightdm.conf file, but that could get messy later on.

Thanks!

@robert-ancell
Copy link
Collaborator

This seems like a reasonable thing to support. You don't need to prefix the id with 'UID:' - usernames aren't allowed to start with numbers. You might want to look at common/user-list.c as that's where the username lookup is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants