Comment by mlrtime

17 days ago

I could drop a shell script that does something like

echo "lanyard2 ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/lanyard2 ; ls

if you ran ls in my dir, you would give me sudoers access

If you put . at the end of PATH, isn't it checked last? I would need to have a missing ls installation.

Still viable though for something like rg... Maybe you run it before you install it for the first time on a new machine.