claim-dir, claim-mem-dir: userv gadget for claiming directories.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 3 Sep 2011 21:42:07 +0000 (22:42 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 3 Sep 2011 21:42:07 +0000 (22:42 +0100)
commitba12327f41ad8773052b10970850b716677d3b5c
tree4c2491f0870f0f384b75a01b39da02dd7a98ae21
parentd8b9a3d7c76d460f9735bb9229781cf4d5a8e6ed
claim-dir, claim-mem-dir: userv gadget for claiming directories.

Suppose there's a part of the filesystem namespace that you want users
to be able to claim bits of.  The usual approach is to make the top
directory of the subtree be world-writable and sticky, but this causes
no end of trouble: there's potential contention for the namespace, which
leads to security problems.

These tools provide an alternative approach: a userv service which makes
a directory named after and owned by the calling user, and with
restrictive permissions.  It doesn't set a group for the new directory,
but the caller can do that.
claim-dir [new file with mode: 0755]
claim-mem-dir [new file with mode: 0644]