2 ms·
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
by mlrtime 8mo 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
- lanyard-textile 8mo agoIf 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.