lkml.org 
[lkml]   [1999]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] Rights for hardlinks
Arvind Sankar wrote:

> On Tue, Mar 23, 1999 at 10:11:08AM -0500, Alexander Viro wrote:
> >
> > Access != write permissions.
>
> I think he has a point, though. You can hardlink even to a file with 0 perms.

The mode of the file is irrelevant. Access to a file is ruled by the
permissions on the directory or directories leading to the file. Access
to the *contents* of the file depends on the mode of the file itself. A
directory contains files, the files contain data.

This according to the traditional Unix file permissions model, which is
quite logical, IMHO.

Johan Myréen
jem@iki.fi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site