Pádraig Brady wrote: > Vai Dy wrote: > > Currently i'm using putty 0-55 version. Just clarify me whether its a > > bug or not .
It's not a bug. But it might be unexpected to you. It is expected according to interpretation of the permissions. > Note putty is just a program on your windows system to access the linux > system. > You can see what linux system you're on with: lsb_release -d > You can see what version of rm you're using with: rm --version Yes. > > 1)Creating a directory > > 2)Removing all the permission like read, write and execute for owners , > > groups and users. > > 3)If i try to delete the file what would be the output ? > > You should be able to remove the file or dir. Well... Not quite. It depends upon the details. For example: $ mkdir xx $ mkdir xx/yy $ chmod 0 xx $ ll -dog xx d--------- 3 4096 Jun 15 14:08 xx $ rm -rf xx rm: cannot remove `xx': Permission denied But that is expected behavior given those permission. This is not a bug in rm. This is simply following the instructions when you removed all permissions from the directory. That is an unusual case but one that was actively instructed and so must be respected. To revert the permissions to something reasonable so that they can be removed you can do something like this: $ chmod -R u+rwX xx $ rm -rf xx Bob
