[systemd-bugs] [Bug 62866] New: Users logging in gets previous user's XDG_RUNTIME_DIR

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Mar 28 07:14:01 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=62866

          Priority: medium
            Bug ID: 62866
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: Users logging in gets previous user's XDG_RUNTIME_DIR
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: keith at dartworks.biz
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

I have a Gentoo system with systemd set up. It's a laptop with multiple users. 
When a user logs the first time they get a XDG_RUNTIME_DIR that is correct for
them. Then they log out, and another user logs in. That next user gets the
previous user's value for XDG_RUNTIME_DIR. That dir (/run/user/100x) is owned
by previous user and various services fail for next user. 

The journal entries:

Mar 28 03:29:07 venus slim[8131]: pam_systemd(slim:session): Asking logind to
create session: uid=1003 pid=8131 service=slim type=x11 class=user seat=seat0
vtnr=7 tty= display=:0.0 remote=no remote_user=root remote_host=

Mar 28 03:29:07 venus slim[8131]: pam_systemd(slim:session): Reply from logind:
id=8 object_path=/org/freedesktop/login1/session/_38
runtime_path=/run/user/1000 session_fd=16 seat=seat0 vtnr=7

Which makes pam_systemd set XDG_RUNTIME_DIR to /run/user/1000, not the current
user's dir. Then:

Mar 28 03:29:07 venus gnome-keyring-daemon[8141]: couldn't create socket
directory: Permission denied

Notice the runtime_path is different from the uid that logged in. It's the
previous user.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20130328/1cb44357/attachment-0001.html>


More information about the systemd-bugs mailing list