diff options
Diffstat (limited to 'etc/sudoers.d')
-rw-r--r-- | etc/sudoers.d/maint | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/sudoers.d/maint b/etc/sudoers.d/maint index d02225f..647cc64 100644 --- a/etc/sudoers.d/maint +++ b/etc/sudoers.d/maint @@ -1,5 +1,9 @@ -%maint ALL=(ALL) NOPASSWD:/usr/bin/snap refresh, /usr/bin/needs-restarting, /usr/bin/dnf needs-restarting +%maint ALL=(ALL) NOPASSWD:/usr/bin/dnf --refresh -y upgrade --color true, /usr/bin/dnf makecache, /usr/bin/dnf check-update +%maint ALL=(ALL) NOPASSWD:/usr/bin/dnf check-upgrade, /usr/bin/snap refresh, /usr/bin/needs-restarting, /usr/bin/dnf needs-restarting -C --color true,/usr/bin/dnf needs-restarting -r # Using -C -q instead of -Cq because yum sucks at this. dnf can cope with it, but in case of # moving forth to a yum-only system... %maint ALL=(ALL) NOPASSWD:/usr/bin/dnf -q makecache,/usr/bin/dnf -C -q check-upgrade -%maint ALL=(ALL) NOPASSWD:/usr/bin/dnf -q -y upgrade +%maint ALL=(ALL) NOPASSWD:/usr/bin/dnf makecache,/usr/bin/dnf -C check-upgrade +%maint ALL=(ALL) NOPASSWD:/usr/bin/dnf -q -y upgrade,/usr/bin/dnf -y upgrade +%maint ALL=(ALL) NOPASSWD:/usr/sbin/shutdown -P +1,/usr/sbin/poweroff,/usr/sbin/reboot +%maint ALL=(ALL) NOPASSWD:/usr/bin/dnf needs-restarting -C -r --color true, /usr/bin/dnf needs-restarting -C |