From 7ee0e0a99e6c300e5acfc22ee3fd285fd5659cf2 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Tue, 11 Nov 2025 15:56:30 +1100 Subject: [PATCH] Clarifications about sudo and secure_path --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5060379..7327b55 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,14 @@ It moves files to a per-user _trash_ instead of permanently deleting them, while ## Installation **NOTE:** To use `resrm` with `sudo`, the path to `resrm` must be in the `$PATH` seen by `root`.\ -Either install `resrm` as `root` (_preferred_), use `sudo -E resrm`, or add the `$PATH` to `/etc/sudoers` using its `Defaults secure_path` parameter. +Either: + + * install `resrm` as `root` (_preferred_), or + * add the path to `resrm` to the `secure_path` parameter in `/etc/sudoers`. For example, where `/home/user/.local/bin` is where `resrm` is: + +``` bash +Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/user/.local/bin" +``` Install via PyPI (_preferred_): -- 2.49.1