loginui: Can't log in to a non-privileged user session after logging in to a different user #47

Closed
opened 2024-09-07 15:25:12 +00:00 by apio · 0 comments
Owner

Steps to reproduce:

  • Edit base/etc/init/99-login and remove "--autologin=selene" to enable the login UI.
  • Build and boot the system.
  • Log in to the root user (password: toor)
  • End the session (for example, by killing /usr/bin/launch)
  • Try to log in to selene (password: moon)

Instead of logging in, the log in screen resets after a short wait.

After analyzing the logs, it seems like the required per-user services (like /usr/bin/launch) try to create their socket file, but as it already exists, they try to delete it. However, the socket files are owned by a different user.

To fix this, either the socket files should be deleted by the services on exit, or deleted by startui, who has root access. The first solution will still cause problems if a service crashes or is killed by SIGKILL, but could be implemented as a partial solution.

Steps to reproduce: - Edit base/etc/init/99-login and remove "--autologin=selene" to enable the login UI. - Build and boot the system. - Log in to the root user (password: toor) - End the session (for example, by killing /usr/bin/launch) - Try to log in to selene (password: moon) Instead of logging in, the log in screen resets after a short wait. After analyzing the logs, it seems like the required per-user services (like /usr/bin/launch) try to create their socket file, but as it already exists, they try to delete it. However, the socket files are owned by a different user. To fix this, either the socket files should be deleted by the services on exit, or deleted by startui, who has root access. The first solution will still cause problems if a service crashes or is killed by SIGKILL, but could be implemented as a partial solution.
apio closed this issue 2024-09-07 15:33:56 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: apio/Luna#47
No description provided.