|
From: | Paul Eggert |
Subject: | bug#27864: [request] safety to prevent `rm -rf ~` |
Date: | Sat, 29 Jul 2017 00:13:53 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
R0b0t1 wrote:
I'm not sure why you would suggest relying on $HOME might be a security issue.
For example, if I'm running a script that executes "rm -fr /special/dir/secret" and want to fool the script into not removing its secret file, I could simply run the script in an environment where HOME=/special/dir/secret.
[Prev in Thread] | Current Thread | [Next in Thread] |