Closed wstein closed 3 years ago
I understand your purpose to add sudo to wget/curl. But is this assumption correct? In my opinion sudo never reads the password from stdin, but always prompt for it. Except you call it with the --stdio/-S option. At least all sudo implementation I am aware of work this way.
Try it.
What is the harm in wgetting as root?
It is useless and it is not necessary. That is all.
Having to support noobs on why they aren’t prompted for their password tells me otherwise and I have had to tell people a lot. I don’t understand why this is a big deal. Since there is nothing dangerous in using it and it makes my life easier, I am closing this issue.
I disagree. Some people do not execute a sudo command before these commands. When wget is outputting to stdout, people will never get the sudo prompt to execute the downloaded content. And wgetting as root is not harmful.