sudo-nopasswd-poc

command
v0.0.76 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 5 Imported by: 0

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:

  1. remove-sudo # start clean (also flushes sudo timestamp cache)
  2. auto-setup # first run: sudoers install prompts once, prints hello
  3. auto-setup # second run (or after 10+ min): no password, prints hello
  4. remove-sudo # tear down
  5. auto-setup # prompts for password again

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL