← Back to context Comment by zahlman 2 months ago `which sudo`?`/usr/bin/sudo`? 8 comments zahlman Reply bestham 2 months ago If they can override sudo, they can override which. antonkochubey 2 months ago if you use \which it'll always be a shell built-in ;) though someone can put a different shell in your .zshrc jolmg 2 months ago $ which() { echo foo; } $ \which foo The backslash only prevents alias expansion. 2 replies → bandie91 2 months ago `exec /tmp/fake-bash` in bashrc to intercept everything? zbentley 2 months ago Then use the absolute path.
bestham 2 months ago If they can override sudo, they can override which. antonkochubey 2 months ago if you use \which it'll always be a shell built-in ;) though someone can put a different shell in your .zshrc jolmg 2 months ago $ which() { echo foo; } $ \which foo The backslash only prevents alias expansion. 2 replies → bandie91 2 months ago `exec /tmp/fake-bash` in bashrc to intercept everything? zbentley 2 months ago Then use the absolute path.
antonkochubey 2 months ago if you use \which it'll always be a shell built-in ;) though someone can put a different shell in your .zshrc jolmg 2 months ago $ which() { echo foo; } $ \which foo The backslash only prevents alias expansion. 2 replies → bandie91 2 months ago `exec /tmp/fake-bash` in bashrc to intercept everything?
jolmg 2 months ago $ which() { echo foo; } $ \which foo The backslash only prevents alias expansion. 2 replies →
If they can override sudo, they can override which.
if you use \which it'll always be a shell built-in ;) though someone can put a different shell in your .zshrc
The backslash only prevents alias expansion.
2 replies →
`exec /tmp/fake-bash` in bashrc to intercept everything?
Then use the absolute path.