GNU bug report logs -
#11696
Bug found in Putty linux
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11696 in the body.
You can then email your comments to 11696 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#11696
; Package
coreutils
.
(Wed, 13 Jun 2012 16:18:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Vai Dy <vaidydeepak <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Wed, 13 Jun 2012 16:18:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
Currently i'm using putty 0-55 version. Just clarify me whether its a
bug or not .
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 ?
Thanks!
Vaidyanathan.S
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#11696
; Package
coreutils
.
(Wed, 13 Jun 2012 16:48:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 11696 <at> debbugs.gnu.org (full text, mbox):
tags 11696 + notabug
close 11696
stop
On 06/13/2012 11:45 AM, Vai Dy wrote:
> Hi,
>
> Currently i'm using putty 0-55 version. Just clarify me whether its a
> bug or not .
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
> 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.
The dir permissions control operations on
files/dirs within the directory, rather than the directory itself.
cheers,
Pádraig.
Added tag(s) notabug.
Request was from
Pádraig Brady <P <at> draigBrady.com>
to
control <at> debbugs.gnu.org
.
(Wed, 13 Jun 2012 16:48:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
11696 <at> debbugs.gnu.org and Vai Dy <vaidydeepak <at> gmail.com>
Request was from
Pádraig Brady <P <at> draigBrady.com>
to
control <at> debbugs.gnu.org
.
(Wed, 13 Jun 2012 16:48:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 11696-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
tag 11696 notabug
thanks
On 06/13/2012 04:45 AM, Vai Dy wrote:
> Hi,
>
> Currently i'm using putty 0-55 version. Just clarify me whether its a
> bug or not .
>
> 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 ?
Thanks for the report. It helps if you show the actual commands you
typed, the actual results you got, and what you were expecting instead,
before claiming that something is a bug. Although your details are
sparse, I think you are asking about:
$ mkdir foo
$ touch bar
$ chmod a-rwx foo bar
$ ls -ld foo bar .
----------. 1 eblake eblake 0 Jun 13 10:51 bar
d---------. 2 eblake eblake 4096 Jun 13 10:25 foo
drwxr-xr-x. 22 eblake eblake 4096 Jun 13 10:52 .
$ rm -rf foo bar
$ echo $?
0
That is correct POSIX behavior, and makes perfect sense (deleting a file
does not require permissions on the file itself, but on the container
that you are deleting it from, and '.' is still writable). I'm going to
close this as not a bug for now, but feel free to continue to post if
you have more details, and we can reopen if necessary.
--
Eric Blake eblake <at> redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[signature.asc (application/pgp-signature, attachment)]
Forcibly Merged 11696 11709.
Request was from
Pádraig Brady <P <at> draigBrady.com>
to
control <at> debbugs.gnu.org
.
(Thu, 14 Jun 2012 17:01:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#11696
; Package
coreutils
.
(Fri, 15 Jun 2012 20:21:01 GMT)
Full text and
rfc822 format available.
Message #18 received at 11696 <at> debbugs.gnu.org (full text, mbox):
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
bug closed, send any further explanations to
11696 <at> debbugs.gnu.org and Vai Dy <vaidydeepak <at> gmail.com>
Request was from
era eriksson <era <at> iki.fi>
to
control <at> debbugs.gnu.org
.
(Thu, 30 Aug 2012 08:27:05 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 27 Sep 2012 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 years and 328 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.