[sudo-users] Adding support to sudo to open a file with elevated privileges

Piotr Dobrogost 2021 at p.dobrogost.net
Sun Sep 5 09:42:41 MDT 2021


On Sun, Sep 5, 2021 at 3:08 PM Daniele Palumbo <daniele at retaggio.net> wrote:
>
> I believe that the main side effect of cat is, in a least privilege model configuration, that you need to allow cat without argument.
> Tee is using an argument as output file.

This makes me wonder why doesn't cat have an --out option which would
solve the problem with having to redirect standard output when using
tee:

echo "something" | sudo cat --out /etc/config_file


Best regards,
Piotr Dobrogost


More information about the sudo-users mailing list