Path: utzoo!attcan!uunet!mcvax!hp4nl!uva!betty!dik From: dik@uva.UUCP (Casper H.S. Dik) Newsgroups: comp.unix.questions Subject: Re: File Write Permission Rules Keywords: file write permission rules Message-ID: <632@uva.UUCP> Date: 10 Feb 89 21:36:04 GMT References: <306@wubios.wustl.edu> <249@ibd.BRL.MIL> <1995@lindy.Stanford.EDU> Sender: news@uva.UUCP Reply-To: dik@uva.UUCP (Casper H.S. Dik) Organization: Faculteit Wiskunde & Informatica, Universiteit van Amsterdam Lines: 18 In article <1995@lindy.Stanford.EDU> eirik@lurch.Stanford.EDU (Eirik Fuller) writes: >All this chatter about how somone else can remove my file even if I'm >the only one who can write to it got me thinking, and the solution is >obvious. .... If you have 4.3BSD, SunOS 4.x etc the solution is even more obvious: Set the sticky bit on your directory. This prevents people other than the owner of the file or the owner of the directory in which the link resides to unlink or rename the link. E.g.: 'chmod +t' /tmp prevents nasty people from doing 'chdir /tmp ; rm -f *' --cd ---------------------------------------------------------------------------- Casper H.S. Dik University of Amsterdam | dik@uva.uucp The Netherlands | ...!uunet!mcvax!uva!dik