Re: Adding support to sudo to open a file with elevated privileges

Piotr Dobrogost <[email protected]> Sun, 5 Sep 2021 17:50:46 +0200
Newsgroups gmane.comp.tools.sudo.user
Message-ID <CAA6tFMuzm8UpAk-fwRe7EYabui0eCKiazufedSsC2OVU=aPw+Q@mail.gmail.com>
On Sun, Sep 5, 2021 at 1:51 AM [email protected]
<[email protected]> 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
basically be slimmed down  (cripled some would say?) version of tee
(without the tee's feature of writing standard input to standard
output).


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