GNU bug report logs - #34700
rm refuses to remove files owned by the user, even in force mode

Previous Next

Package: coreutils;

Reported by: Nicolas Mailhot <nicolas.mailhot <at> laposte.net>

Date: Fri, 1 Mar 2019 13:38:02 UTC

Severity: wishlist

Tags: notabug

Full log


View this message in rfc822 format

From: Nicolas Mailhot <nicolas.mailhot <at> laposte.net>
To: 34700 <at> debbugs.gnu.org
Subject: bug#34700: rm refuses to remove files owned by the user, even in force mode
Date: Fri, 01 Mar 2019 13:48:51 +0100
Hi,

For their own reasons, the Go maintainers have decided the user Go cache
will now be read-only.
https://github.com/golang/go/issues/27161#issuecomment-433098406

That means cleaning up cache artefacts with rm does not work anymore
https://github.com/golang/go/issues/30502

I understand the need to protect read only files (even though they're
supposed to have been created by a user decision, not by user-hostile
tools). However should not rm remove the files anyway in force (-f) mode
without an explicit chmod first? Do it without bothering me is why -f
exists after all.

$ rpm -q --whatprovides /usr/bin/rm
coreutils-8.30-9.fc30.x86_64

Best regards,

-- 
Nicolas Mailhot





This bug report was last modified 6 years and 80 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.