Skip to content

fix: passwordless sudo preflight and dnsutils check; add demo GIF - #3

Merged
antomanc merged 3 commits into
mainfrom
fix/sudo-dnsutils-demo-gif
Oct 10, 2026
Merged

antomanc merged 3 commits into
mainfrom
fix/sudo-dnsutils-demo-gif

Conversation

@antomanc

Copy link
Copy Markdown
Owner

Three changes found while recording a demo GIF:

  • fix(setup): skip the sudo prompt when sudo already works without a password. On Debian, the default %sudo rule requires a password, so sudo -v prompts even when agbox's NOPASSWD rule also matches. Re-running agbox setup without a terminal (for example from an agent) failed with sudo authentication failed. Preflight now tries sudo -n true first. A new CLI test uses a fake sudo to cover this. It also fixes 3 dry-run CLI tests that failed on hosts set up this way.
  • fix(system): install bind9-dnsutils instead of the virtual dnsutils. On Debian 13, dnsutils exists only as a name provided by bind9-dnsutils, so dpkg never reports it as installed and agbox doctor always failed on it. bind9-dnsutils is the real package name on Debian 12/13 and Ubuntu 24.04+.
  • docs: add an agbox doctor demo GIF to the README, recorded with vhs from docs/assets/demo.tape.

make check passes locally.

…hout one

On Debian the default %sudo rule requires a password, so `sudo -v` prompts
even when agbox's NOPASSWD rule also matches. Re-running setup without a
terminal (e.g. from an agent) then failed with 'sudo authentication failed'.
On Debian 13 dnsutils is only a virtual package provided by bind9-dnsutils,
so dpkg never reports it installed and doctor always failed on it.
Recorded with vhs from docs/assets/demo.tape.
@antomanc
antomanc merged commit efd8ce2 into main Oct 10, 2026
5 checks passed
@antomanc
antomanc deleted the fix/sudo-dnsutils-demo-gif branch October 10, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant