#888999 unbound-anchor: please move unbound-anchor from /usr/sbin to /usr/bin

Package:
unbound-anchor
Source:
unbound
Description:
utility to securely fetch the root DNS trust anchor
Submitter:
Daniel Kahn Gillmor
Date:
2022-04-19 20:27:02 UTC
Severity:
wishlist
Tags:
#888999#5
Date:
2018-02-01 03:12:59 UTC
From:
To:
the dns-root-data package's debian/rules uses unbound-anchor in its
get_orig_source target.  It currently specifies the path explicitly,
because it shouldn't need to be run as root.

This is a classic example of a program that doesn't need to be run as
root living in /usr/sbin when it should live in /usr/bin.  Let's let
people rely on their standard $PATH without making brittle scripts.
I'm fine with shipping a symlink from /usr/sbin/unbound-anchor so that
we don't break existing brittle scripts, but we shouldn't encourage
creation of more brittle scripts in the first place.

#888999#10
Date:
2022-04-19 20:25:52 UTC
From:
To:
Hello!

Well yes, it appears to be that unbound-anchor does not need to be a
"system" command, it is a user-callable command. But this is how upstream
doe is, - and they ship unbound-anchor.8 manpage too.  I don't know why
it is done this way. Maybe it historically it were supposed to be run
as a daemon to keep the file updated? It was definitely used by unbound
itself to fetch the DNS root key, and now in Debian, dns-root-data package
sits "between" unbound-anchor and the unbound daemon.

Maybe we should talk with upstream for them to reconsider?
I don't have an opinion here besides the fact that I want to have as few
debian-specific changes as possible.

Thanks,

/mjt