Sounds like you want the tmp permission

I believe it is chmod o+t, maybe it's also known as 1777 on the directory but I'm not sure - it is what keeps processes in /tmp from destroying each others' files. It allows you to write and edit your own files but not edit or delete others.