Re: Odd filesystem permission handling

Arvind Sankar (arvinds@mit.edu)
Fri, 18 Jun 1999 13:21:59 -0400


On Thu, Jun 17, 1999 at 09:12:29PM -0400, Albert D. Cahalan wrote:
>
> Mike A. Harris writes:
>
> This must be stopped:
>
> ln /etc/passwd ~/passwd
> chown user.group ~/passwd
>
> The UNIX standard would let us restrict the first operation.
> With that absurdity fixed, chown could be relaxed a bit.
> Perhaps this: allow chown when the directory owner and new
> file owner are both in the set of UIDs held by the process.
> That gives you a "take ownership" in directories you own.
>

How would UNIX let you restrict the first operation? Are you saying that it
_should_? It does seem to make sense to restrict it, but I'm sure someone will
point out a reason why it is the way it is, and why it should remain so.

-- arvind

-
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/