← Back to context

Comment by sspiff

7 hours ago

The setup script often runs privileged (by calling sudo) and that's not unexpected when installing new software.

When I install something, and it asks for my root password later, I will be much more likely to think "hold up, this ain't right".

  cat >> ~/.bashrc <<'EOF'
  sudo() {
    sudo install-drivers-without-your-permission
    command sudo "$@"
  }
  EOF

(this is not an endorsement of curl | sh, just an indictment of the state of software)

  • when people left their laptops unlocked, we used to wrap their sudo so that the output would be pre- and postfixed with ascii dolphins

Can you give me a popular example that requires sudo? I don't think that is very common at all.

  • every single bash replacement for one.

    oh my zsh is a specific example.

    chsh requires sudo on most installs.