I have a linux multi user server with 100+ users in /etc/passwd
I would like to allow users to "book" / "reserve" a name of their liking (in this case a subdomain, but that details doesn't matter)
I have created a directory called /reservations
and with chmod 777.
If user johndoe does, touch /reservations/coolsite
, he indicates that
he would like to "own" that name "coolsite"
The "mechanism" should be set up so that,
johndoe can have a change of mind later, and
rm /reservations/coolsite
to un-book that nameanother user is not allowed to
touch /reservations/coolsite
, because johndoe asked for it first.if johndoe
rm
his file, another user is allow to book it.users can't
rm / rename / mv / etc
other folks filesuser johndoe can have multiple bookings by doing
touch /reservations/coolsite && touch /reservations/coolsite2
Is this possible using some kind of standard linux permissions mechanism?
I would hate to resort to perl for this, my perl skills have become rusty since the day ruby came along with her wavy blonde hair ...
touch
? – american-ninja-warrior Dec 29 '17 at 14:09umask
). Oh good one @perlduck – Rinzwind Dec 29 '17 at 14:10