qubes-issues icon indicating copy to clipboard operation
qubes-issues copied to clipboard

user session is not "active" if passwordless root access is disabled

Open marmarek opened this issue 3 years ago • 3 comments

How to file a helpful issue

Qubes OS release

R4.1

Brief summary

loginctl reports user session as "State: online" instead of "State: active". This breaks (at least) access rights for devices with TAG+="uaccess". Activating session manually works only from root, from user it gives:

$ loginctl activate
Failed to issue method call: Access denied

Steps to reproduce

  1. Take Debian minimal template (might apply to others too)
  2. Install libpam-systemd (otherwise sessions are not registered at all)
  3. Create AppVM based on it and start it
  4. Call loginctl session-state as a user in that VM

Expected behavior

State: active

Actual behavior

State: online

Reported by @andrewdavidwong

marmarek avatar Aug 11 '22 11:08 marmarek

As discussed with @marmarek, this seems to affect Debian minimal but not Fedora minimal.

andrewdavidwong avatar Aug 12 '22 04:08 andrewdavidwong

I think it is better to add libpam-systemd; it’s a tiny package and the UX benefit is worth it.

DemiMarie avatar Aug 12 '22 06:08 DemiMarie

I think it is better to add libpam-systemd; it’s a tiny package and the UX benefit is worth it.

I disagree. The raison d'être of minimal templates is to be minimal. "Tiny" and "UX benefit" are not principled reasons to add a package to a template the primary purpose of which is to be as minimal as possible. If we added every tiny package with a UX benefit, the template would no longer be minimal at all. It would be quite bloated, and there would be little reason for it to exist in addition to the standard template. Users are free add whichever packages they choose for such reasons, which is how minimal templates are intended to be used.

andrewdavidwong avatar Aug 12 '22 17:08 andrewdavidwong

fedora-37-minimal ships with systemd-libs already installed. qube based on that template shows "State: active" for loginctl session-status

unman avatar Apr 04 '23 15:04 unman