themactep.com

A home of miscellaneous projects by Paul Philippov.

Notes

How to run sudo without a password

ME=$(whoami) && echo "$ME ALL=(ALL) NOPASSWD: ALL" | sudo tee "/etc/sudoers.d/$ME" && sudo chmod 0440 "/etc/sudoers.d/$ME"

Please note, that’s insecure and dangerous! Use with caution.