xfs
[Top] [All Lists]

Re: Access control lists

To: "Orn E. Hansen" <oe.hansen@xxxxxxxxxxxxxxxxxxx>
Subject: Re: Access control lists
From: Jan-Frode Myklebust <janfrode@xxxxxxxxxxxxxxx>
Date: Sun, 24 Jun 2001 13:57:50 +0200
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <01062412392901.01807@xxxxxxxxxxxxxxxxxxxxxx>; from oe.hansen@xxxxxxxxxxxxxxxxxxx on Sun, Jun 24, 2001 at 12:39:29PM +0200
References: <01062412392901.01807@xxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
[snip]

> 
> drwxrwxrwx    2 root     root           20 Jún 24 12:16 xfs
> 

Anybody kan write and delete files in this
directory. If you want to limit deletions to the
owner of the file, you'll have to add the sticky
bit.

        chmod +t /opt/xfs

[snip]

> And then another user logs in, and edits the file with 'vi' and writes with 
> ':w!' this is what it looks like after that ordeal:
> 

I believe 'vi' overrides the file permissions by 
deleting and creating a new file, which is allowed
by the directory permission. Try it on a ext2
filesystem, and you should get the same results.


  -jf

<Prev in Thread] Current Thread [Next in Thread>