Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!nrl-cmf!ukma!rutgers!rochester!cornell!uw-beaver!blake!ogccse!littlei!uunet!mcvax!ukc!stl!stc!datlog!scm From: scm@datlog.co.uk ( Steve Mawer ) Newsgroups: comp.unix.questions Subject: Re: File Write Permission Rules Keywords: file write permission rules Message-ID: <1750@dlvax2.datlog.co.uk> Date: 13 Feb 89 12:40:32 GMT References: <306@wubios.wustl.edu> Reply-To: scm@datlog.co.uk ( Steve Mawer ) Organization: Data Logic Ltd, Queens House, Greenhill Way, Harrow, London. Lines: 19 In article <306@wubios.wustl.edu> david@wubios.wustl.edu (David J. Camp) writes: >We have a strange situation where a program can write to a file even >though it does not have write permission. > I would have required write permission to >the file itself in order that it be removed. >-David- I too, have thought this behaviour bizarre. However, the (logical) answer is that deleting a file does *not* involve writing to it, only to the directory. Therefore, if you can write to a directory, you can delete the file. If you want to protect your files, match the permissions of the file with those of the directory. (I know this is not a good answer if you want users to be able to *create* personal files in the directory.) -- Steve C. Mawer or < {backbone}!ukc!datlog!scm > Voice: +44 1 863 0383 (x2153)