coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Complete provension of rm'ing / without direct forced argument?


From: Pádraig Brady
Subject: Re: Complete provension of rm'ing / without direct forced argument?
Date: Mon, 27 Jun 2016 11:02:25 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 27/06/16 10:19, Ethin Probst wrote:
> Hello all,
> I am writing this message to propose a feature enhancement that would
> not allow users to delete the root file system (/) when executing rm
> -rf. This proposal, if approved, implements a new argument,
> --delete-root-filesystem, which would perform the old behavior.
> Without this argument, rm -rf (or it's variants) would not allow this
> to occur. --delete-root-filesystem would need to be specified in full,
> and even then rm would prompt you to ensure you wanted this to occur.
> For exploits that require simlinks to /, rm would notify you that this
> is a simlink and require that --delete-root-filesystem be specified.
> Please think on this.

Good suggestion, but it's already implemented :)
See the --no-preserve-root added to rm, chmod, chown
since 5.1.0 (2003-12-21)

cheers,
Pádraig.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]