Xref: utzoo gnu.emacs.help:1799 comp.emacs:10574 Newsgroups: gnu.emacs.help,comp.emacs Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!barmar From: barmar@think.com (Barry Margolin) Subject: Re: Saving a file in emacs without the right permission bits Message-ID: <1991Apr19.212721.22919@Think.COM> Sender: news@Think.COM Organization: Thinking Machines Corporation, Cambridge MA, USA References: <1991Apr18.220342.25107@sj.ate.slb.com> <1991Apr19.052504.2074@Think.COM> Distribution: usa Date: Fri, 19 Apr 91 21:27:21 GMT In article ramabads@cs.rpi.edu writes: >Excuse this dumb question, but should'nt the owner be the only person who >is allowed to rename files ??? Especially if the permissions are 644 as >Kanan claims ??? Renaming the file only affects the directory, not the file itself, so it only requires write permission on the directory. Consider the situation where your friend creates a file in his directory, and then you make a hard link to it in your directory. Your friend is the owner of the file, but you should be able to rename or remove your link to it. -- Barry Margolin, Thinking Machines Corp. barmar@think.com {uunet,harvard}!think!barmar