Hi Helge, On Sun, Nov 17, 2024 at 11:52:09AM GMT, Helge Kreutzmann wrote: > Hello Alejandro, > Am Sun, Nov 17, 2024 at 12:30:28PM +0100 schrieb Alejandro Colomar: > > On Sun, Nov 17, 2024 at 10:46:22AM GMT, Helge Kreutzmann wrote: > > > Without further ado, the following was found: > > > > > > Issue: When executing this commands, sudo prompts me for my password > > > > And what's the problem? > > From reading the example, this is not expected. But if this is > implied/clear, then I can mark this accordingly in our file. sudo(8) asks for a password depending on having run sudo(8) before, and depending on its configuration. I think we can omit it, but I'm open to being convinced otherwise. Cheers, Alex > > > > "$B< echo test | sudo -u nobody cat>\n" > > > "test\n" > > > "$B< echo test | sudo -u nobody cat /proc/self/fd/0>\n" > > > "cat: /proc/self/fd/0: Permission denied\n" > > > > alx@debian:~$ sudo echo > > [sudo] password for alx: > > > > alx@debian:~$ echo test | sudo -u nobody cat > > test > > alx@debian:~$ echo test | sudo -u nobody cat /proc/self/fd/0 > > cat: /proc/self/fd/0: Permission denied > > Greetings > > Helge -- <https://www.alejandro-colomar.es/>
Attachment:
signature.asc
Description: PGP signature