Clarifications about sudo and secure_path

This commit is contained in:
Miguel Jacq
2025-11-11 15:56:30 +11:00
parent dcd1165066
commit 7ee0e0a99e

View File

@@ -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_):