Documentation
¶
Overview ¶
Conceptual POC for passwordless-sudo setup used by ws-proxy vpn.
Models the future --no-setup-sudo / auto-setup flow with a stand-in "hello" command instead of sing-box. Validates detect → setup → reuse → remove.
Usage:
go run ./script/sudo-nopasswd-poc detect go run ./script/sudo-nopasswd-poc auto-setup go run ./script/sudo-nopasswd-poc remove-sudo
Manual validation:
- remove-sudo # start clean (also flushes sudo timestamp cache)
- auto-setup # first run: sudoers install prompts once, prints hello
- auto-setup # second run (or after 10+ min): no password, prints hello
- remove-sudo # tear down
- auto-setup # prompts for password again
Click to show internal directories.
Click to hide internal directories.