GNU bug report logs -
#11709
allows the user to modify the file when no access is given
Previous Next
Reported by: Vai Dy <vaidydeepak <at> gmail.com>
Date: Thu, 14 Jun 2012 16:23:01 UTC
Severity: normal
Tags: notabug
Merged with 11696
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 11709 in the body.
You can then email your comments to 11709 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#11709
; Package
coreutils
.
(Thu, 14 Jun 2012 16:23: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
.
(Thu, 14 Jun 2012 16:23: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,
It seems to bug in the following scenario.
- created directory
- Inside directory created a file with no access to users ,groups and
owners.
- I logged into Linux machine as a user.
- from root if try to modify the file ext, it allows me to do even
though no access is given to anyone. i used mv command here. It modified
successfully.
- When i try to view the file from root with the help of cat , it says
permission denied.
E.g;
mkdir dir1
dir1: touch file1
dir1: chmod oug= file1(No access is given)
dir1: ls -l
----------- 1 xx yy 0 2012 -06-14 8.23 file1
cd dir1
dir1: mv file1 file.ksh
Please clarify the above .
Thanks!
Vaidyanathan.S
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#11709
; Package
coreutils
.
(Thu, 14 Jun 2012 17:01:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 11709 <at> debbugs.gnu.org (full text, mbox):
tags + notabug
forcemerge 11709 11696
stop
I've already answered this request.
When you mv a file you're operating on the directory,
not the file itself.
cheers,
Pádraig.
On 06/14/2012 08:40 AM, Vai Dy wrote:
> Hi,
>
> It seems to bug in the following scenario.
>
>
> - created directory
> - Inside directory created a file with no access to users ,groups and
> owners.
> - I logged into Linux machine as a user.
> - from root if try to modify the file ext, it allows me to do even
> though no access is given to anyone. i used mv command here. It modified
> successfully.
> - When i try to view the file from root with the help of cat , it says
> permission denied.
>
> E.g;
> mkdir dir1
> dir1: touch file1
> dir1: chmod oug= file1(No access is given)
> dir1: ls -l
> ----------- 1 xx yy 0 2012 -06-14 8.23 file1
> cd dir1
> dir1: mv file1 file.ksh
>
> Please clarify the above .
>
> Thanks!
> Vaidyanathan.S
>
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#11709
; Package
coreutils
.
(Fri, 15 Jun 2012 20:30:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 11709 <at> debbugs.gnu.org (full text, mbox):
Vai Dy wrote:
> It seems to bug in the following scenario.
For future discussion please use the coreutils <at> gnu.org mailing list
for discussion. This mailing list is for bug reports and creates a
new bug ticket to track bugs with every new message. But since you
are mostly asking questions for understanding and not reporting bugs
that would be much better done on the discussion list so that we don't
keep having extra bug tickets. Discussion on the discussion list is
better and then if something does turn out to be a bug then we can
open a bug ticket for it. Thanks!
> - created directory
> - Inside directory created a file with no access to users ,groups and
> owners.
> - I logged into Linux machine as a user.
Linux is a kernel and not an operating system. You cannot have logged
into a kernel. Please say instead the operating system that you are
using. But most important is the version of the coreutils program you
are talking about. You can get the version from the program.
$ ls --version
Or:
$ cat --version
And so on for any of the commands.
> - from root if try to modify the file ext, it allows me to do even
> though no access is given to anyone. i used mv command here. It modified
> successfully.
The root user is the "Superuser" on the system. Without talking about
other variations the superuser is not restricted by file permissions.
Only normal users are restricted by file permissions.
> - When i try to view the file from root with the help of cat , it says
> permission denied.
You said 'cat' here but your example did not contain it.
> E.g;
> mkdir dir1
> dir1: touch file1
> dir1: chmod oug= file1(No access is given)
> dir1: ls -l
> ----------- 1 xx yy 0 2012 -06-14 8.23 file1
> cd dir1
> dir1: mv file1 file.ksh
>
> Please clarify the above .
As Pádraig said the permissions of the file have nothing to do with
the permissions of the directory. Moving the file is a directory
operation. It does not affect the contents of the file. It affects
the contents of the directory.
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.