Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!think!barmar From: barmar@think.COM (Barry Margolin) Newsgroups: comp.unix.questions Subject: Re: File Write Permission Rules Keywords: file write permission rules Message-ID: <36398@think.UUCP> Date: 14 Feb 89 20:54:42 GMT References: <306@wubios.wustl.edu> <9627@smoke.BRL.MIL> <502@maxim.ERBE.SE> Sender: news@think.UUCP Reply-To: barmar@kulla.think.com.UUCP (Barry Margolin) Organization: Thinking Machines Corporation, Cambridge, MA Lines: 21 In article <502@maxim.ERBE.SE> prc@maxim.ERBE.SE (Robert Claeson) writes: >it certainly makes more sense to have a "delete" attribute on a file, >which must be set in order for me to remove it. But since Unix allows a single file to be accessed using multiple directory entries, a single delete attribute isn't enough. How would you specify that it is OK for anyone to remove some of the links, but not others? For instance, I might make a hard link in my directory to something in a friend's directory. Only I should be allowed to remove my link, and only he should be allowed to remove his link, and he shouldn't be able to prevent me from removing my link. If you're going to allow multiple hard links, as Unix does, then it doesn't make sense for deletability to be a file attribute, it must be a link attribute. Barry Margolin Thinking Machines Corp. barmar@think.com {uunet,harvard}!think!barmar