public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Bug in the file attributes ?
@ 2001-03-29 20:20 Xavier Ordoquy
  2001-03-29 18:44 ` Andreas Dilger
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Xavier Ordoquy @ 2001-03-29 20:20 UTC (permalink / raw)
  To: linux-kernel


Hi,

I just made a manipulation that disturbs me. So I'm asking whether it's a
bug or a features.

user> su
root> echo "test" > test
root> ls -l
-rw-r--r--   1 root     root            5 Mar 29 19:14 test
root> exit
user> rm test
rm: remove write-protected file `test'? y
user> ls test
ls: test: No such file or directory

This is in the user home directory.
Since the file is read only for the user, it should not be able to remove
it. Moreover, the user can't write to test.
So I think this is a bug.

---
 Xavier Ordoquy, Aurora-linux
 If NT is the answer, you didn't understand the question.


^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Bug in the file attributes ?
@ 2001-03-29 19:25 Jesse Pollard
  0 siblings, 0 replies; 9+ messages in thread
From: Jesse Pollard @ 2001-03-29 19:25 UTC (permalink / raw)
  To: xordoquy, linux-kernel

---------  Received message begins Here  ---------

> 
> 
> Hi,
> 
> I just made a manipulation that disturbs me. So I'm asking whether it's a
> bug or a features.
> 
> user> su
> root> echo "test" > test
> root> ls -l
> -rw-r--r--   1 root     root            5 Mar 29 19:14 test
> root> exit
> user> rm test
> rm: remove write-protected file `test'? y
> user> ls test
> ls: test: No such file or directory
> 
> This is in the user home directory.
> Since the file is read only for the user, it should not be able to remove
> it. Moreover, the user can't write to test.
> So I think this is a bug.

Nope - rm only updates the directory, which the user owns; not the file.
The prompt is just being nice.

-------------------------------------------------------------------------
Jesse I Pollard, II
Email: pollard@navo.hpc.mil

Any opinions expressed are solely my own.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2001-03-30  2:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-29 20:20 Bug in the file attributes ? Xavier Ordoquy
2001-03-29 18:44 ` Andreas Dilger
2001-03-29 20:56   ` Xavier Ordoquy
2001-03-29 19:04     ` John Jasen
2001-03-29 22:57   ` Brian Beattie
2001-03-29 18:45 ` Stephen Clouse
2001-03-29 18:51 ` Justin Carlson
2001-03-30  2:34   ` Tim Wright
  -- strict thread matches above, loose matches on Subject: below --
2001-03-29 19:25 Jesse Pollard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox