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/coolsiteto un-book that name
another user is not allowed to
touch /reservations/coolsite, because johndoe asked for it first.
rmhis file, another user is allow to book it.
rm / rename / mv / etcother folks files
user 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 ...