Subject: Re: bug#11709: allows the user to modify the file when no access is given

From: Pádraig Brady <[email-masked]>
Date: Thu, 14 Jun 2012 17:57:41 +0100

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
>