"systemd[xxx]: Warning: neither $XDG_CONFIG_HOME nor $HOME are defined" appears in services using 'su nobody'

Solution Unverified - Updated -

Issue

  • The following warning message is printed to the system log for services that run using su nobody.

    • systemd[xxx]: Warning: neither $XDG_CONFIG_HOME nor $HOME are defined

Environment

  • Red Hat Enterprise Linux 8, 9 and 10
  • systemd
  • su
  • podman

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