Re: Adding support to sudo to open a file with elevated privileges
Piotr Dobrogost <[email protected]> Sun, 5 Sep 2021 17:42:41 +0200
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Message-ID | <CAA6tFMuP-DKfB=uCC4p88rzj+rp9yzrHgE-sevwGW1prn0RKfw@mail.gmail.com> |
On Sun, Sep 5, 2021 at 3:08 PM Daniele Palumbo <[email protected]> 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 ____________________________________________________________ sudo-users mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-users