3 ms·
This but unironically. There's no way to ensure that nobody overwrote your .profile or .bashrc with a backdoored sudo that steals your password, or runs your co
by gruez 5mo ago
This but unironically. There's no way to ensure that nobody overwrote your .profile or .bashrc with a backdoored sudo that steals your password, or runs your command and then runs an evil command afterwards.
- zahlman 5mo ago`which sudo`? `/usr/bin/sudo`?
- bestham 5mo agoIf they can override sudo, they can override which.
- antonkochubey 5mo agoif you use \which it'll always be a shell built-in ;) though someone can put a different shell in your .zshrc
- zbentley 5mo agoThen use the absolute path.