From 38152ab152139531b0b4aa1edccbe9448668bf68 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Wed, 24 Apr 2024 18:16:42 +0300 Subject: [PATCH] etc/sudoers.d: add vim modelines just in case I think it autodetected them correctly though --- etc/sudoers.d/hibernate | 2 ++ etc/sudoers.d/insults | 2 ++ etc/sudoers.d/lecture | 2 ++ etc/sudoers.d/restart-matterbridge | 2 ++ etc/sudoers.d/teamviewerd | 2 ++ 5 files changed, 10 insertions(+) diff --git a/etc/sudoers.d/hibernate b/etc/sudoers.d/hibernate index e04c7ec7..54bb0e8e 100644 --- a/etc/sudoers.d/hibernate +++ b/etc/sudoers.d/hibernate @@ -3,3 +3,5 @@ %plugdev ALL = NOPASSWD: /usr/sbin/hibernate # suspend %plugdev ALL = NOPASSWD: /usr/sbin/s2ram + +# vim: filetype=sudoers diff --git a/etc/sudoers.d/insults b/etc/sudoers.d/insults index f1f5ceba..b597d9ae 100644 --- a/etc/sudoers.d/insults +++ b/etc/sudoers.d/insults @@ -12,3 +12,5 @@ Defaults insults # Disable insults for user aminda #Defaults:aminda !insults + +# vim: filetype=sudoers diff --git a/etc/sudoers.d/lecture b/etc/sudoers.d/lecture index ee46cccd..b62d0b8f 100644 --- a/etc/sudoers.d/lecture +++ b/etc/sudoers.d/lecture @@ -3,3 +3,5 @@ # For more information, see https://superuser.com/a/500125 # & https://serverfault.com/a/333640 Defaults lecture = always + +# vim: filetype=sudoers diff --git a/etc/sudoers.d/restart-matterbridge b/etc/sudoers.d/restart-matterbridge index 63e7685a..3b581ce3 100644 --- a/etc/sudoers.d/restart-matterbridge +++ b/etc/sudoers.d/restart-matterbridge @@ -1,3 +1,5 @@ # Via https://askubuntu.com/a/692712, I am tired of checking password just # for this. Target system: Debian and Ubuntu %sudo ALL=NOPASSWD: /bin/systemctl restart matterbridge.service + +# vim: filetype=sudoers diff --git a/etc/sudoers.d/teamviewerd b/etc/sudoers.d/teamviewerd index 1b15a27c..dc5f193c 100644 --- a/etc/sudoers.d/teamviewerd +++ b/etc/sudoers.d/teamviewerd @@ -6,3 +6,5 @@ %sudo ALL=NOPASSWD: /bin/systemctl stop teamviewerd.service %sudo ALL=NOPASSWD: /bin/systemctl start teamviewerd.service %sudo ALL=NOPASSWD: /bin/systemctl restart teamviewerd.service + +# vim: filetype=sudoers