On Tue, Dec 13, 2011 at 9:02 AM, Ken Schneider - openSUSE
On 12/13/2011 08:40 AM, Anders Johansson pecked at the keyboard and wrote:
On Tuesday 13 December 2011 08:31:51 Ken Schneider - openSUSE wrote:
This may be a bug in rm but:
(as user)
ken@pc1:~> rm -r -i .gvfs/ rm: remove write-protected directory `.gvfs'? y ken@pc1:~> mkdir .gvfs ken@pc1:~> ll -a .gvfs/ total 16 drwxr-xr-x 2 ken users 4096 Dec 13 08:26 . drwxr-xr-x 190 ken users 12288 Dec 13 08:26 ..
Was it mounted before you did that?
Anders
No. That's why I guess. But still it removed a directory I had no write permission to.
-- Ken Schneider SuSe since Version 5.2, June 1998
I believe unix in general has always done that. you can remove files you don't have specific write permission to if you are the owner, it'll just prompt. from my redhat machine: [zep@scooter junk]$ touch a [zep@scooter junk]$ chmod 0 a [zep@scooter junk]$ ls -l total 0 ---------- 1 zep zep 0 Dec 13 09:22 a [zep@scooter junk]$ rm a rm: remove write-protected regular empty file `a'? y [zep@scooter junk]$ ls -l total 0 -- Even the Magic 8 ball has an opinion on email clients: Outlook not so good. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org