logoalt Hacker News

evikstoday at 7:45 AM2 repliesview on HN

Why not make a proper link /sudo so you don't have to type out the full path every time, which is very inconvenient? (but the fact that such workarounds are needed still means it's a theater)


Replies

lrvicktoday at 8:45 AM

A simple LD_PRELOAD command can cause your shell to run "rm -rf /" when you type "/sudo".

If your unprivileged user is compromised, you are pretty hosed.

show 1 reply
sinsudotoday at 8:34 AM

Anything that can be modified by an attacker can not be used to secure the sudo command. This is a recursive requirementor hierarchy for secure systems.

show 1 reply