Translated message

A translation of this page exists in English.

XDG_RUNTIME_DIR が設定されておらず、su または sudo を使用してユーザーを切り替える場合に /run/user/<UID> が存在しない

Solution In Progress - Updated -

Issue

  • su - <user> または sudo -u <user> -i は、一時的に <user> としてコマンドを実行するのに使用されます。
  • XDG_RUNTIME_DIR およびその他の XDG 関連の環境変数が設定されていません。
  • /run/user/uid ディレクトリーは作成されません。
  • ソリューション 5592491 で推奨されているように、pam_systemd.so/etc/pam.d/system-auth に追加した後でも問題が発生します。

Environment

  • Red Hat Enterprise Linux (RHEL) 8、9

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