Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-5828

Provide a way for privileged users to interact with systemd user instances

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • High
    • rhel-plumbers
    • ssg_core_services
    • 4
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None
    • 57,005

      Description of problem:

      With RHEL8.x, users can have their own systemd instance, but there is no way for the root user or privileged users (e.g. in "wheel" group) to manage the systemd user instances at all.

      So far, the only way is to use "sudo+XDG_RUNTIME_DIR" which is not a good solution:

      $ sudo -u user1 /bin/bash -c "export XDG_RUNTIME_DIR=/run/user/$(id -u user1); /usr/bin/systemctl --user list-units"

      Version-Release number of selected component (if applicable):

      systemd-239+

      How reproducible:

      N/A

      Additional info:

      See also:
      https://github.com/systemd/systemd/issues/14580

              jmigacz@redhat.com Jacek Migacz
              rhn-support-rmetrich Renaud Métrich
              Jacek Migacz Jacek Migacz
              Frantisek Sumsal Frantisek Sumsal
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: