/etc/NetworkManager/dnsmasq-shared.d/ is in network-manager 1.6.2-3+deb9u2.
This file is owned by root:root, with mode 0o755.