Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • Defaulting to /tmp/user for the location does not fully meet my requirements. so at the very least I'd have to reconfigure it to use a different path. I suppose that means there isn't another standard location for this kind of thing, and I'd have to make up my own idea about what path to use. Commented Mar 25, 2015 at 13:57
  • It's actually /tmp/user/$UID, so each user gets their own directory. Commented Mar 25, 2015 at 14:00
  • Sure, but it is still possible for somebody to grab the name /tmp/user before root. Commented Mar 25, 2015 at 14:01
  • If you want to avoid that, you can configure libpam-tmpdir to fail by specifying "required" instead of "optional", which prevents login in an unsafe context. root gets /tmp/user/0, not /tmp/user. Commented Mar 25, 2015 at 14:02
  • I'd still rather have it use a location, where that possibility doesn't even exist. That would be the case if I used /run rather than /tmp. It turns out that /run/user already exists and is created in a way quite similar to what I am looking for. Commented Mar 25, 2015 at 14:20