lkml.org 
[lkml]   [1999]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Odd filesystem permission handling
On Thu, Jun 17, 1999 at 10:19:04AM -0400, Mike A. Harris wrote:
> Logged in as user "mharris" and in my home dir, I had a dir
> called "down" owned by root.root with perms 755.
>
> This dir had files in it.
>
> As "mharris" I tried to chown the dir to mharris.mharris, and I
> got permission denied. I then tried "rm -rf down/" also as
> mharris, and it successfully let me remove the directory.
>

It doesn't on 2.2.10:
$ ls -ld 1
drwxr-xr-x 2 root root 4096 Jun 17 10:52 1
$ ls -l 1
total 0
-rw-r--r-- 1 arvind arvind 0 Jun 17 10:52 1
-rw-r--r-- 1 arvind arvind 0 Jun 17 10:52 2
$ rm -fr 1
rm: cannot unlink `1/1': Permission denied
rm: cannot unlink `1/2': Permission denied
rm: cannot remove directory `1': Directory not empty

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

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.097 / U:2.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site