[fhs-discuss] user-specific directories in /run

Richard Hartmann richih.mailinglist at gmail.com
Sun May 22 09:14:38 PDT 2011


Hi all,


I have been pondering and discussing.this idea with several people.

The long and short of it is that while /tmp tends to be cleaned out
from time to time and while it's trivial to put /tmp into /run (at
least in Debian), having a single canonical place for truly volatile
data storage would be a plus, IMO.

Thus, my suggestion is to introduce

  /run/user-$USER/
or
  /run/users.d/$USER/

or similar as a directory which has been chmodded 700 to the user in
question. One concern of mine is what mechanism should create the
directory and at what point in time. You don't want to create a
thousand unused directories on a multi-user system, otoh said
directory should always exist and as soon as possible after a user
creates a session. PAM might be a solution. And while those
considerations may be outside of the scope of the FHS, it's still a
good idea to think about it beforehand.


Optionally, this could be called $XDG_RUN or similar.


Thoughts?
Richard


More information about the fhs-discuss mailing list