From: Chad Perrin Date: 2012-07-28T06:05:14+09:00 Subject: Re: rubyzip gem overwrites write-protected root-owned file On Fri, Jul 27, 2012 at 07:16:16AM +0900, Wybo Dekker wrote: > > I don't agree. > First, look at http://www.tuxfiles.org/linuxhelp/filepermissions.html, > which says: > Write permission. On a regular file, this means you can modify the file, > aka write new data to the file. In the case of a directory, the write > permission means you can add, remove, and rename files in the directory. > This means that if a file has the write permission bit, you are allowed > to modify the file's contents, but you're allowed to rename or delete > the file only if the permissions of the file's directory allow you to do so. You're right, of course. I completely failed to think about directory permissions. That's my mistake; sorry about that. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]