Skip to content

Commit

Permalink
test: having write permission on directory don't imply delete permission
Browse files Browse the repository at this point in the history
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
  • Loading branch information
kvaneesh committed Feb 23, 2011
1 parent 1e1146b commit 3b5468f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/delete.test
Expand Up @@ -8,7 +8,8 @@ $ id -Gn daemon
> daemon bin

$ mkdir n1
$ touch n1/f
$ touch n1/f n1/g
$ chmod o+w n1/g

$ mkdir d2 d3 d4 d5 d6 d7
$ touch d2/f d3/f d4/f d5/f d6/f d7/f d7/g
Expand Down Expand Up @@ -40,6 +41,10 @@ Cannot delete files without permissions:
$ rm n1/f
> rm: cannot remove `n1/f': Permission denied

Cannot delete files without permissions:
$ rm n1/g
> rm: cannot remove `n1/g': Permission denied

Can delete files we own:
$ rm d2/f s2/f

Expand Down

0 comments on commit 3b5468f

Please sign in to comment.