Messages in this thread | | | Date | Wed, 5 Oct 2005 22:51:32 +0200 | From | Bas Westerbaan <> | Subject | Re: what's next for the linux kernel? |
| |
You can delete a directory entry to a file if you have proper permission to the directory.
You cannot read or write the file if the file doesn't give you permission to.
A hard link makes an additional directory entry to a certain file. You delete the directory entry to the file, not the file.
And permissions are the same for all instances of the file.
My 2 cents.
On 10/5/05, Julian Blake Kongslie <jblake@omgwallhack.org> wrote: > On Wed, 05 Oct 2005 13:27:15 -0700 > Marc Perkel <marc@perkel.com> wrote: > > There would be different rights to eack link. > > Well, color me confused. > > You appear to be saying that the permission on a file differ depending > on which link you are accessing it by. Furthermore, your stance seems to > imply that linking to a file grants either write permission or ownership > on the new link. > > So, under this permission model, I could link to /etc/passwd in my > home directory, edit the link to change my UID to zero, then relogin to > the system as an administrator. > > Not that I would need to, of course, because any user who owns/could > write to a directory would be able to alter any file on the entire > system. I know they're called "permission" models, but that seems > *extremely* permissive... > > -- > -Julian Blake Kongslie > <jblake@omgwallhack.org> > > >
-- Bas Westerbaan http://blog.w-nz.com/ GPG Public Keys: http://w-nz.com/keys/bas.westerbaan.asc - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |