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

Shawn McMahon syberghost at gmail.com
Sun Sep 5 10:45:54 MDT 2021


On Sun, Sep 5, 2021 at 11:58 AM Piotr Dobrogost <2021 at p.dobrogost.net>
wrote:

> On Sun, Sep 5, 2021 at 1:51 AM Matthew.Stier at fujitsu.com
> <Matthew.Stier at fujitsu.com> wrote:
> >
> > I think that the biggest kickback you will get, is that it violates the
> Unix philosophy.
>
> Ah, well.
> Then I guess the Unix way of solving this would be to add yet another
> binary (there's already cat and tee) which would basically just open a
> file and write standard input to it. It could be called "open" :) and
>

 I think the Unix way would be to write a script and run the script.


More information about the sudo-users mailing list