GNU bug report logs - #41554
chmod allows removing x bit on chmod without a force flag, which can be inconvenient to recover from

Previous Next

Package: coreutils;

Reported by: Will Rosecrans <wrosecrans <at> gmail.com>

Date: Wed, 27 May 2020 01:54:02 UTC

Severity: normal

Tags: notabug

Done: Bob Proulx <bob <at> proulx.com>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 41554 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Will Rosecrans <wrosecrans <at> gmail.com>
Cc: 41554 <at> debbugs.gnu.org
Subject: Re: bug#41554: chmod allows removing x bit on chmod without a force
 flag, which can be inconvenient to recover from
Date: Wed, 27 May 2020 10:13:12 +0200
On Mai 26 2020, Will Rosecrans wrote:

> "chmod a-x $(which chmod)" not a particularly likely thing for a user to
> try to do directly, but it is conceivable for some sort of script to
> attempt it by accident because of a bug, and it would make the system
> inconvenient to recover.

It will likely fail with EPERM.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."




This bug report was last modified 5 years and 52 days ago.

Previous Next


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