blob: 3779fb2d387eff9285c3154f9cfc23f513265a23 (
plain)
1
2
3
4
5
6
7
8
9
10
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
|