Comment by lanyard-textile

19 days ago

Elaborate?? "." has been at the end of my PATH for like 20 years.

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.