GNU bug report logs - #11696
Bug found in Putty linux

Previous Next

Package: coreutils;

Reported by: Vai Dy <vaidydeepak <at> gmail.com>

Date: Wed, 13 Jun 2012 16:18:02 UTC

Severity: normal

Tags: notabug

Merged with 11709

Done: era eriksson <era <at> iki.fi>

Bug is archived. No further changes may be made.

Full log


Message #18 received at 11696 <at> debbugs.gnu.org (full text, mbox):

From: Bob Proulx <bob <at> proulx.com>
To: Vai Dy <vaidydeepak <at> gmail.com>, 11696 <at> debbugs.gnu.org
Subject: Re: bug#11696: Bug found in Putty linux
Date: Fri, 15 Jun 2012 14:17:13 -0600
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




This bug report was last modified 12 years and 346 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.