/etc/sudoers.d/99-maas-common-sudoers is in maas-common 2.4.0~beta2-6865-gec43e47e6-0ubuntu1.
This file is owned by root:root, with mode 0o440.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | maas ALL= NOPASSWD: /usr/bin/lshw
maas ALL= NOPASSWD: /sbin/blockdev
# MAAS network monitoring tools.
maas ALL= NOPASSWD: /usr/lib/maas/network-monitor
maas ALL= NOPASSWD: /usr/lib/maas/beacon-monitor
# Control of the NTP server: MAAS needs to reconfigure it after editing
# its configuration file, and start it again if stopped manually.
maas ALL= NOPASSWD: /bin/systemctl restart chrony
maas ALL= NOPASSWD: /bin/systemctl start chrony
maas ALL= NOPASSWD: /bin/systemctl status chrony
# Writing and deleting files as root.
maas ALL= NOPASSWD: /usr/lib/maas/maas-delete-file
maas ALL= NOPASSWD: /usr/lib/maas/maas-write-file
# Allow active subnet mapping
maas ALL= NOPASSWD: /usr/lib/maas/maas-common scan-network *
|