Mailinglist Archive: opensuse-bugs (3393 mails)

< Previous Next >
[Bug 747380] New: "su -l <user>" does not set $XDG_RUNTIME_DIR for the new <user>
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 16 Feb 2012 14:47:11 +0000
  • Message-id: <>

Summary: "su -l <user>" does not set $XDG_RUNTIME_DIR for the
new <user>
Classification: openSUSE
Product: openSUSE 12.1
Version: Final
Platform: i586
OS/Version: openSUSE 12.1
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: werner.lueckel@xxxxxx
QAContact: qa@xxxxxxx
Found By: ---
Blocker: ---

User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0) Gecko/20100101

If I login to another <user> with "su -l <user>", $XDG_RUNTIME_DIR is not set
for that <user> but keeps set as for the calling user.
As a result, 'dconf' doesn't work since 'dconf' relies on $XDG_RUNTIME_DIR/
beeing there and accessable for writing.
I found a "work-around":
insert in "/etc/pam.d/su-l"
the entry: "session required"
before: "session include common-session"
Now /run/user/<user>/ is made and $XDG_RUNTIME_DIR is set properly.

Reproducible: Always

Steps to Reproduce:
1. echo $XDG_RUNTIME_DIR -> e.g.: /run/user/lueckel
2. su -l guest
3. echo $XDG_RUNTIME_DIR -> also: /run/user/lueckel
Actual Results:
$XDG_RUNTIME_DIR points to the "old" location: /run/user/lueckel
and there is no directory /run/user/guest/

Expected Results:
$XDG_RUNTIME_DIR should point to /run/user/guest/
and a directory /run/user/guest/ should be made

Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
This Thread
  • No further messages