diff options
author | Severin Glöckner | 2021-02-26 03:22:30 +0100 |
---|---|---|
committer | Severin Glöckner | 2021-02-26 03:26:09 +0100 |
commit | 18b7b51f1e7cf771562643eaec1ce4a7edf45f3e (patch) | |
tree | 61b0f0a3f1bc4503b921cde442788218e72c6bd2 /sshd.sudoers | |
download | aur-18b7b51f1e7cf771562643eaec1ce4a7edf45f3e.tar.gz |
initial commit
Diffstat (limited to 'sshd.sudoers')
-rw-r--r-- | sshd.sudoers | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sshd.sudoers b/sshd.sudoers new file mode 100644 index 000000000000..3779fb2d387e --- /dev/null +++ b/sshd.sudoers @@ -0,0 +1,11 @@ +# allow starting SSHD on demand (instead of letting it run all the time) +%sys ALL=(root) NOPASSWD: /usr/bin/systemctl start sshd +%sys ALL=(root) NOPASSWD: /usr/bin/systemctl start sshd.service +%sys ALL=(root) NOPASSWD: /usr/bin/systemctl stop sshd +%sys ALL=(root) NOPASSWD: /usr/bin/systemctl stop sshd.service +%sys ALL=(root) NOPASSWD: /usr/bin/systemctl restart sshd +%sys ALL=(root) NOPASSWD: /usr/bin/systemctl restart sshd.service +%sys ALL=(root) NOPASSWD: /usr/bin/systemctl reload sshd +%sys ALL=(root) NOPASSWD: /usr/bin/systemctl reload sshd.service +%sys ALL=(root) NOPASSWD: /usr/bin/systemctl reload-or-restart sshd +%sys ALL=(root) NOPASSWD: /usr/bin/systemctl reload-or-restart sshd.service |