Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kafkaIncarnate
on Oct 31, 2021
|
parent
|
context
|
favorite
| on:
Bash functions are better than I thought
Look into NOPASSWD in the sudoers manpage. You can just put the code in a script then give %wheel (or whomever) NOPASSWD access to run it. This can also be thrown in sudoers.d for ease of copying and managing config across machines.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: