How to avoid RHEL8+ from spawning "systemd --user" instance on user login

Solution Verified - Updated -

Issue

  • On RHEL8+, when a user logs in (using ssh, sftp or ftp), a systemd --user instance spawns automatically, consuming memory and CPU
  • On RHEL8+, when a user cron executes, a systemd --user instance spawns automatically, consuming memory and CPU

Environment

  • Red Hat Enterprise Linux 8 and later (RHEL8+)
    • systemd

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content