bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Too powerful rmdir


From: address@hidden
Subject: Too powerful rmdir
Date: Wed, 12 Aug 2009 07:21:49 +0800

Hello,

I suppose this is a designing issue or a bug:

You can remove an empty directory as you like, even if you don't have the
right to read, write nor execute:

address@hidden:~/Unix_Tutorial_8/5$ mkdir test
address@hidden:~/Unix_Tutorial_8/5$ ls -l
total 4
drwxr-xr-x 2 fu fu 4096 2009-08-12 06:39 test
address@hidden:~/Unix_Tutorial_8/5$ chmod ugo-rwx test/
address@hidden:~/Unix_Tutorial_8/5$ ls -l
total 4
d--------- 2 fu fu 4096 2009-08-12 06:39 test
address@hidden:~/Unix_Tutorial_8/5$ rmdir test
address@hidden:~/Unix_Tutorial_8/5$ ls -l
total 0
address@hidden:~/Unix_Tutorial_8/5$



-- 
Zhoulai FU

Ecole Polytechnique (X-2005)
Telecom Paris (2010)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]